Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Circular references and Garbage collection.

by sauoq (Abbot)
on Aug 02, 2002 at 23:34 UTC ( [id://187250]=note: print w/replies, xml ) Need Help??


in reply to Circular references and Garbage collection.

The solution is either to avoid creating circular references or to be sure you break them yourself. This is documented in perlobj. Arguably, it should be documented elsewhere as well; perhaps it should be in perlref.

Some say this is a failing of Perl's GC strategy. It can also be regarded as a strength. It greatly simplifies things while putting only a small burden on the programmer. If you are using circular references, you are probably sophisticated enough to handle breaking them yourself.

-sauoq
"My two cents aren't worth a dime.";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://187250]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-03-28 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found