Anyway I'm not sure why perl doesn't reset the lexical pad to undef when leaving the subWell, that's quite obvious. "Resetting" variables that go out of scope would be waste of resources. You'd spend time setting a value for a variable that has no references to it left.
What's the point?
In reply to Re^3: Confusion over scope of "my" vars
by JavaFan
in thread Confusion over scope of "my" vars
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |