in reply to Re: "eval" and "my" variable weirdness
in thread "eval" and "my" variable weirdness
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