Thread arrayprobleme
(2 answers)
Opened by kpwl at 2011-06-30 19:31
Was machst du?
Bei mir funktioniert es: Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 my @array; push(@array,[ 1, 2, 3, 4]); push(@array,['A','B','C','D']); test(\@array); sub test { my $arr=shift; print "$_, " for(@{$arr->[0]}); print "\n"; print "$_, " for(@{$arr->[1]}); print "\n"; } Last edited: 2011-06-30 21:04:31 +0200 (CEST) |