You must name the loop variable for at least one of the loops.
for my $i ( 1 .. $#array1 ) { for my $j ( 1 .. $#array1 ) { print "$i $j\n"; } }
Makeshifts last the longest.
In reply to Re: nested for loop with assumed scalars
by Aristotle
in thread nested for loop with assumed scalars
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |