Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Garbage Collection

by mrmick (Curate)
on Jan 05, 2001 at 19:27 UTC ( [id://50076]=note: print w/replies, xml ) Need Help??


in reply to Garbage Collection

Here's another shot at it...

Memory allocation is limited to scope(block,subroutine,package). If you have any references to an object then the object stays in memory. Once the last reference to that object is gone (out of scope or undef'd for example) then your resources are freed automatically.

The data(object) is persistent only when you have something in the namespace(s) that reference.

Mick

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-25 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found