Almost. Map returns an array, which a foreach doesn't AFAIK. So you can get some useful behaviour with:
join "\n", map{$_->someFunction()} @a;
In reply to Re^2: Things I Don't Use in Perl
by danmcb
in thread Things I Don't Use in Perl
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |