in reply to Re: "eval" and "my" variable weirdness
in thread "eval" and "my" variable weirdness

Again, the "problem" is that, when 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.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart
  • Comment on Re^2: "eval" and "my" variable weirdness