Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://32327]
[prathap keerthipati]: what are the possible cases for getting 500 cannot connection issue

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-03-23 05:54 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (282 votes). Check out past polls.