in reply to Getting parsed text from an HTML::Parser object

The results aren't "in" $p. You created a parser that does nothing with the results, so it parsed it and did nothing, just as you asked.

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.


update:
HTML::Parser->new(text_h => [sub { print shift }, "text"])->parse_file +("some_file");