Thread flexible Arrays
(7 answers)
Opened by Hydro at 2011-05-27 14:53
Probieren geht über studieren...
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 use strict; use warnings; my @x = (1,2,3,4,5); $, = ' '; for my $i (6..10){ print "\nSchleifenanfang: @x\n"; push @x, $i; print "nach dem push: @x\n"; shift @x; print "nach dem shift: @x\n"; } |