in reply to Perl and Garbage Collection
Hi Svetlana,
Do perl programmers have to worry like C++ programmers do?
In general, no. The main thing to remember is that circular references will prevent garbage collection. Other than that, Perl programmers don't usually have to worry about memory management, exceptions may be when trying to fit large amounts of data into RAM, or when writing XS code.
I think you'll find the replies in this thread very informative: Do subroutine variables get destroyed?
Hope this helps,
-- Hauke D
|
---|