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


in reply to Re: map syntax error -- weird
in thread map syntax error -- weird

And just for completeness, to disambiguate the other way, use a leading +:

map +{ "x" => $y }, qw(1 2 3);
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Replies are listed 'Best First'.
Re^3: map syntax error -- weird
by ikegami (Patriarch) on Mar 24, 2013 at 07:08 UTC
    map +{... map EXPR, LIST map {;... map BLOCK LIST