in reply to Re: Confusion over scope of "my" vars
in thread Confusion over scope of "my" vars
UPDATE: you may want to use B::Deparse and B::Concise and the debugger to see what actually happens!
Anyway I'm not sure why perl doesn't reset the lexical pad to undef when leaving the sub, might be a bug or a necessity for closures.
If I were you, I'd report this code to perlporters most likely they already discussed it!
> you can also try this, which results in an error
I know it's documented but I'm not happy about this behaviour!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Confusion over scope of "my" vars
by JavaFan (Canon) on Nov 26, 2008 at 18:24 UTC | |
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 | |
|