in reply to Re^2: Confusion over scope of "my" vars
in thread Confusion over scope of "my" vars
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Confusion over scope of "my" vars
by LanX (Saint) on Nov 26, 2008 at 18:31 UTC | |
by ikegami (Patriarch) on Nov 26, 2008 at 21:00 UTC | |
by LanX (Saint) on Nov 26, 2008 at 21:14 UTC | |
by ikegami (Patriarch) on Nov 27, 2008 at 02:13 UTC | |
by LanX (Saint) on Nov 27, 2008 at 09:35 UTC | |
|