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


Comment on Re^2: map syntax error -- weird
Select or Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2014-12-28 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls