http://www.perlmonks.org?node_id=485990


in reply to Re: Things I Don't Use in Perl
in thread Things I Don't Use in Perl

Almost. Map returns an array, which a foreach doesn't AFAIK. So you can get some useful behaviour with:

join "\n", map{$_->someFunction()} @a;

Replies are listed 'Best First'.
Re^3: Things I Don't Use in Perl
by Anonymous Monk on Aug 24, 2005 at 00:10 UTC
    Map returns a list