Actually since he's reassigning to the same $tree et al each time through it the old ones (if any) should be getting deallocated. Problem is that HTML::TreeBuilder objects contain circular references and don't get garbage collected correctly. This is why the perldocs show that you're supposed to call $tree->delete when you're done with it.
In reply to Re: Re: Segment Fault(Core Dump)
by Fletch
in thread Segment Fault(Core Dump)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |