Thread flexible Arrays (7 answers)
Opened by Hydro at 2011-05-27 14:53

Sven_123
 2011-05-27 15:41
#149208 #149208
User since
2010-06-01
120 Artikel
BenutzerIn
[default_avatar]
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";
}

View full thread flexible Arrays