Re: HTML::TokeParser
Gisle Aas (gisle@aas.no)
08 Jul 1998 21:03:40 +0200
[Cc-ing the list also]
Jeff Tan-Ang <tanan-js@odin.ee.uwa.edu.au> writes:
> I have a quick question (i just read your post), would it be possible to
> pass in $html (entity-body returned by say, HTTP::Request) as an argument
> into the constructor - you see, i want to be able to retrieve the html
> file (with HTTP::Request) and pass it straight into TokeParser without
> having to write to a file...and then make use of get_tag and
> get_trimmed_text.
You should be able to use the IO::Scalar module for that. Something
like this (untested) should work:
$p = HTML::TokeParser->new(IO::Scalar->new($response->content_ref));
Regards,
Gisle