Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Perl Variables Being Retained

by sundialsvc4 (Abbot)
on Aug 02, 2013 at 12:25 UTC ( #1047585=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl Variables Being Retained
in thread Perl Variables Being Retained

Specifically in terms of “Perl not cleaning up the memory,” also note the weaken in Scalar::Util.   If you have data structures referring to one-another such that a circular reference is formed, memory does not clean up but rather “leaks.”   You avoid this by weakening one of the links in the chain.   Test::Memory::Cycle is another tool that is designed specifically to look for these circular reference-chains.


Comment on Re^2: Perl Variables Being Retained

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2015-07-06 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (69 votes), past polls