use HTML::TreeBuilder; use strict; # examples aren't exempt!!! my $parser = new HTML::TreeBuilder; $parser->parse($html_code_from_elsewhere); my @links = $parser->look_down('_tag' => 'a'); foreach my $link (@links) { my $href = $link->attr('href'); my $descr = $link->content->[0]; # Assumes only simple text conten +ts } $parser->delete();
In reply to Re: Using HTTP::LinkExtor to get URL and description info
by OracleJedi
in thread Using HTTP::LinkExtor to get URL and description info
by Popcorn Dave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |