more useful options | |
PerlMonks |
Re^2: "eval" and "my" variable weirdnessby japhy (Canon) |
on Jun 29, 2006 at 16:50 UTC ( [id://558377]=note: print w/replies, xml ) | Need Help?? |
Again, the "problem" is that, when bar.pl is require()d, Perl has to make some scope decisions. The quux() function doesn't make any claims to $x, so it's not a closure around $x. frobozz() is a closure around $x.
In Section
Seekers of Perl Wisdom
|
|