in reply to nested for loop with assumed scalars
EDIT: thanks to Jenda
beware with
you'll never get the array element $array[0] because 0 is the first index of an array (well, you could change this behaviour by setting the variable $[ to a nonzero value,for my $i (1..$#array) { print "$i: $array[$i]\n"; }
for (0..$#array) { print "$i: $array[$i]\n"; }
Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: nested for loop with assumed scalars
by Jenda (Abbot) on Aug 08, 2004 at 23:52 UTC |