Perl 5.12 added the capability for each to return the index and value of an array in list context.
In reply to Re^2: Style and Preference on Loops
by chromatic
in thread Style and Preference on Loops
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |