Thread Teile eines Arrays nach Parameterübergabe undef (5 answers)
Opened by bianca at 2016-06-18 10:42

FIFO
 2016-06-18 18:20
#184952 #184952
User since
2005-06-01
469 Artikel
BenutzerIn

user image
Deine Syntax funktioniert leider garnicht :) Es wird ja auch nicht undef zurückgegeben, sondern ein "uninitialized value for $." angemahnt.

Auf stackoverflow hat brian d foy die korrekte Bildung eines Arrayref-slices beschrieben, incl. einer neuen (Postfix-)Variante ab Perl 5.20.
Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"

View full thread Teile eines Arrays nach Parameterübergabe undef