From: Paul Johnson <[EMAIL PROTECTED]>
> On Tue, Dec 17, 2002 at 12:39:41AM -0600, christopher j bottaro wrote:
> > just that memory will stay allocated as long as there is a way to
> > reach it?
> 
> Yes.  And occassionally even if there isn't.  Perl 5 uses reference
> counting, and so you have to make your own provisions for destroying
> circular data structures.

See weaken() from Scalar::Utils for the (IMHO) easiest way to ensure 
your circulars get garbage-collected.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to