Daily Archives: September 3, 2009

How To Fix a Perl Memory Leak

If you’re using HTML::TreeBuilder, you might find a memory leak when creating lots of trees. You must explicitly delete the trees because HTML::Tree does not use weak refs. Here’s how to delete the ref: use HMTL::TreeBuilder; my $formatter = HTML::FormatText->new(); … Continue reading

Leave a comment