go ahead... be a heretic | |
PerlMonks |
Re: failure to compile list eval in blockby LanX (Saint) |
on Dec 16, 2012 at 00:22 UTC ( [id://1009025]=note: print w/replies, xml ) | Need Help?? |
Perl's parser uses heuristics to make the distinction between hashes and code-blocks. Because of the numbers (remember => is just a fat comma) this is interpreted as a hash. eliminating the ; helps seeing what's happening
But what do you expect a codeblock with 7,10 to do? EDIT: one workaround to help the parser understand your intentions is an early semicolon
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|