Thread maximale Größe eines Arrays
(33 answers)
Opened by cohama at 2014-06-12 09:27 2014-06-12T11:53:14 pq Nein, es geht nicht, weil das Array durch shift verändert wird: Code (perl): (dl
)
1 2 3 4 5 my @foo = ( 0..9 ); for ( @foo ) { my $shift = shift @foo; print "\$_: $_\t\$shift: $shift\n"; } Ausgabe: 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"
|