Syntactic Confectionery Delight | |
PerlMonks |
Re: B::Deparse weirdness (parser weirdness!)by LanX (Saint) |
on Oct 13, 2014 at 11:35 UTC ( [id://1103614]=note: print w/replies, xml ) | Need Help?? |
Rephrased: B::Deparse thinks (and I expected) that parens have priority to capture function arguments and that do('foo')->{'bar'}; is analogous to (do 'foo') -> {bar} but the weird parser rather sees do ('foo' -> {bar}) see the difference in priority of parens around arguments by comparing print() vs do()
just remember the common trap when people try writing something like print (caller)[5]
while
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :)
In Section
Seekers of Perl Wisdom
|
|