Re: Memory Leaks?

Gisle Aas (aas@bergen.sn.no)
07 Jul 1997 23:59:18 +0200


"Benjamin M. Hill" <Benjamin.M.Hill@dartmouth.edu> writes:

> I didn't even know perl did that. Or does it?
> 
> But, unfortunately for me, I have some sort of leak somewhere.  (Nice and
> vauge)  In the standard code, for stripping HTML from a rawdata get, it goes
> like:
> 
>  	#Format the page as text
>     $htmldata = HTML::Parse::parse_html($rawdata);
>     $formatter = new HTML::FormatText;
>     $textdata = $formatter->format($htmldata);

You need to add:

     $htmldata->delete;

Read the HTML::Element documentation.

-- 
Gisle Aas <aas@sn.no>