Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: leaking scalars

by athomason (Curate)
on Sep 13, 2000 at 23:09 UTC ( #32327=note: print w/ replies, xml ) Need Help??


in reply to leaking scalars

Can you provide some code? It sounds like you've generated a reference somewhere that doesn't want to go away. Perl's garbage collector is based on reference counting, i.e. it reclaims a variable's memory once no references to it remain. If you've managed some convoluted circular reference magic (or DBI has done some of it for you, which happens if you don't clean up your handles properly), you could have a variable at the end of your program that resists removal. It's not a critical failure, like you say, but an annoying one.

Short of seeing some code, I'd suggest you go back and finish all your handles after you're done with them; that has helped me with similar problems in the past.


Comment on Re: leaking scalars
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-09-20 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (158 votes), past polls