instead of doing it C-style (unless I need a more complex index transition than the usual $i++).for my $i (0..$#arr) { do_whatever(); }
In reply to Re^3: foreach to for
by dsheroh
in thread foreach to for
by tricolaire
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |