Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: failure to compile list eval in block

by ikegami (Pope)
on Dec 16, 2012 at 13:45 UTC ( #1009061=note: print w/replies, xml ) Need Help??


in reply to failure to compile list eval in block

The usual disambiguators:
{; ... } # Block +{ ... } # Hash constructor

For example,

>perl -ce"{ 1, 2; }" syntax error at -e line 1, near "; }" -e had compilation errors. >perl -ce"{; 1, 2; }" -e syntax OK >perl -ce"map { f() }, @a" syntax error at -e line 1, near "}," -e had compilation errors. >perl -ce"map +{ f() }, @a" -e syntax OK

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009061]
help
Chatterbox?
choroba likes the movie
[choroba]: Lady_Aleena Do you really need to say "WorldBuilder" after having said "WorldBuilding"?
[LanX]: have to watch it again :)
[Lady_Aleena]: choroba, the tables in that group of modules is from the World Builder's Guidebook, so I thought it best to add the name of the book to the name of the module.
[choroba]: oh, I see
[Lady_Aleena]: There is the RolePlaying:: WorldBuilding:: WorldBuildersGuide book suite and the RolePlaying:: WorldBuilding:: HighLevelCampaigns suite.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2017-05-24 22:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?