in reply to Unusual Closure Behaviour
$x should dissapear when it leaves the scope of foo. Why isn't this happening? Seems like the table is keeping it. If you take out the if undef the variable keeps on being redefined and reset. Could be useful for recursion :)
BMaximus
BMaximus
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Unusual Closure Behaviour
by HyperZonk (Friar) on Jul 12, 2001 at 17:34 UTC | |
by iakobski (Pilgrim) on Jul 12, 2001 at 19:54 UTC | |
by HyperZonk (Friar) on Jul 12, 2001 at 21:35 UTC |
In Section
Seekers of Perl Wisdom