Your mileage may vary, of course.sub foo { my $array = @_; foreach ($array) { do stuff; } # ... }
/s
Update: I guess the joke doesn't come across as well on screen.
s/readability/job security/
In reply to Re: for vs foreach?
by educated_foo
in thread for vs foreach?
by Flame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |