in reply to Re: eval do {} -- magical variable assignment?
in thread eval do {} -- magical variable assignment?
eval -> skip ahead to see if there is a " or a { nearby. read eval as "string eval" or "block eval" accordingly.Additionally, I suspect my brain was parsing out the "do" entirely since in many situations it is used simply because a block by itself won't work (ie. in the do/while construct).
Yet another little nuance to add to my mental Perl parser. Which makes me wonder if the common saying:
Nothing can parse Perl except perlShouldn't be re-phrased to something like:
Nothing can parse Perl except perl or Larry Wall's brain:)
|
|---|