in reply to Re: Segment Fault(Core Dump)
in thread Segment Fault(Core Dump)

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.

Replies are listed 'Best First'.
Re: Re: Re: Segment Fault(Core Dump)
by Anonymous Monk on May 17, 2004 at 15:36 UTC
    Thanks everyone for replying. I'll try using "undef" and $tree->delete at the end of the main loop to clear the garbage up. Im suprised I didn't think of this sooner Cheers! Annonymous Monk