in reply to Using URI::Find with HTML
Adaping one of the examples there, it'd be something like:
use HTML::Parser; HTML::Parser->new( unbroken_text => 1, default_h => [sub { print shift }, 'text'], text_h => sub { my $text = shift; (URI::Find here) +; print $text }, 'text'], )->parse_file(shift || die) || die $!;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using URI::Find with HTML
by skx (Parson) on Dec 06, 2005 at 15:59 UTC |