in reply to Re: eval do {} -- magical variable assignment?
in thread eval do {} -- magical variable assignment?

Yes wow. And this is why it's funky - because my brain is parsing something like this:

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 perl
Shouldn't be re-phrased to something like:
Nothing can parse Perl except perl or Larry Wall's brain
:)
  • Comment on Re^2: eval do {} -- magical variable assignment?