http://www.perlmonks.org?node_id=1010589


in reply to Re: Avoiding memory loss...
in thread Avoiding memory loss...

So perhaps I'm right to be concerned about cleanup... the program itself will be installed as a daemon, so anything I can do to prevent long term consumption, or to force garbage collection would be good.

What method do you recommend to remove the array? My read of delete (man page) against an array leads me to believe that I'm still waiting on true garbage collection

Replies are listed 'Best First'.
Re^3: Avoiding memory loss...
by LanX (Saint) on Dec 27, 2012 at 23:48 UTC
    > So perhaps I'm right to be concerned about cleanup

    No don't worry, Anonymous probably confuses the garbage collection systems.

    Perl doesn't freeze!

    Just be careful to not produce circular references.

    Cheers Rolf