Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
[stevieb]: my RPi::WiringPi now fully supports: GPIO, LCDs, digital potentiometers, analog to digital converters, shift registers, barometric pressure sensor, direct access to SPI bus, and ability for more :)
[stevieb]: ...just need to perform many tests and POD review this week, then I'm going to put together some real projects and post about them

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-01-22 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (190 votes). Check out past polls.