in reply to Variables living outside their scope

It's freed when the refcount goes to zero. Your code is perfectly safe, and is reminiscint of how we create objects every day.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Variables living outside their scope