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


in reply to Re: map grep and sort
in thread map grep and sort

See also:

Also worth noting that map's block is called in list context so can return zero or more items.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Replies are listed 'Best First'.
Re^3: map grep and sort
by coyocanid (Sexton) on May 25, 2013 at 14:38 UTC
    That is a very good and important point. Map can generate hashes because of this. I will add that fact to the above.