Personally, I find for-as-foreach more useful:
Try make:
efficiently do something like:for my $i (0 .. $#array) { ... }
for ($i=0; $i < @array; $i += ROWSIZE) { ... }
In reply to Re^3: My favorite looping mechanism in Perl is:
by Anonymous Monk
in thread My favorite looping mechanism in Perl is:
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |