I\'m chasing a couple of potential memory leaks in a Perl code base and I\'d like to know about common pitfalls with regards to memory (mis-)management in Perl.
Some modules from CPAN use circular references to do their work, e.g. HTML::TreeBuilder (which represents HTML tree). They will require you to run some destroying method/routine at the end. Just read the docs :)