my $counter:loopcounter; # automatically used for all loops in the inn +ermost scope print "$_ at index $counter\n" for @x; print "$_\n" for @y; print "\@x and \@y had $counter total elements\n";
In reply to Re: Automatic Loop Counter not in perl
by ysth
in thread Automatic Loop Counter not in perl
by b4swine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |