Garbage collection in Perl

Posted by srikfreak on Stack Overflow See other posts from Stack Overflow or by srikfreak
Published on 2010-06-04T06:46:00Z Indexed on 2010/06/04 6:49 UTC
Read the original article Hit count: 449

Unlike Java, Perl uses reference count for garbage collection. I have tried searching some previous questions which speak about C++ RAII and smart pointers and Java GC but have not understood how Perl deals with the circular referencing problem.

Can anyone explain how Perl's garbage collector deals with circular references? Is there any way to reclaim circular referenced memory which are no longer used by the program or does Perl just ignores this problem altogether?

© Stack Overflow or respective owner

Related posts about perl

Related posts about garbage-collection