Welcome to the Monastery | |
PerlMonks |
Re^3: Map Function Weirdnessby ikegami (Patriarch) |
on Nov 09, 2011 at 17:56 UTC ( [id://937167]=note: print w/replies, xml ) | Need Help?? |
Keep in mind that Deparse is not precise. It's a useful tool, but don't rely on it too deeply. For example, this is wrong.
The $x is scoped to the if. Or is it... My code is an approximation too. The if is equivalent to neither
nor
The my is lexically scoped at compile-time (as shown in mine), but it's not lexically scoped at run-time (as shown by Concise and Deparse). This means the objects can live a little longer than expected.
In Section
Seekers of Perl Wisdom
|
|