develooper Front page | perl.perl5.porters | Postings from July 2013

Re: [perl #119049] referencing some variables hides others fromPadWalker starting 5.17.2

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
July 30, 2013 14:32
Subject:
Re: [perl #119049] referencing some variables hides others fromPadWalker starting 5.17.2
Message ID:
20130730143219.GP2177@iabyn.com
On Tue, Jul 30, 2013 at 01:31:30PM +0200, demerphq wrote:
> While I agree with your analysis I thought that PADMY vars werent
> freed until global destruction.

PADMY vars are freed when the CV is freed whose pad they reside in
(as well as any other CVs which might also have captured them).

For named CVs this is typically during global destruction; for anon CVs
this is typically  when the ref to the anon CV is freed.

-- 
Indomitable in retreat, invincible in advance, insufferable in victory
    -- Churchill on Montgomery

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About