Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: map syntax error -- weird

by tobyink (Abbot)
on Mar 22, 2013 at 22:38 UTC ( #1024987=note: print w/replies, xml ) Need Help??


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 (Pope) on Mar 24, 2013 at 07:08 UTC
    map +{... map EXPR, LIST map {;... map BLOCK LIST

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024987]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-11-17 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (270 votes). Check out past polls.

    Notices?