... you could use map { do_something( $_ ) @list in place of for (@list) { do_something( $_ ) } ...
And likewise grep for a really confusing maintenance session! (grep has the same optimization in void context.)
Give a man a fish: <%-{-{-{-<
In reply to Re^5: How do I use the map command for this?
by AnomalousMonk
in thread How do I use the map command for this?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |