Yes. using foreach you have to do something terribly contorted and crazily inefficient. Like that.
Thank you for so adeptly illustrating my point.
In reply to Re^5: My favorite looping mechanism in Perl is:
by Anonymous Monk
in thread My favorite looping mechanism in Perl is:
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |