in reply to Getting parsed text from an HTML::Parser object
You need to configure the parser, telling it what to do when it sees text, tags, comments, and so on. There are examples on the HTML::Parser manpage, although if you're just trying to get at the text, there's HTML::Filter that does it all at once.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
HTML::Parser->new(text_h => [sub { print shift }, "text"])->parse_file +("some_file");
|
|---|