P is for Practical | |
PerlMonks |
Re: How do I parse links out of a web pageby gregorovius (Friar) |
on May 19, 2000 at 04:45 UTC ( [id://13170]=note: print w/replies, xml ) | Need Help?? |
Unfortunately HTML::LinkExtor does not offer a
way of extracting the link text from the 'A' tag.
You can resort to the HTML::TokeParser instead.
The HTML::TokeParser perldoc contains a snippet that does exactly what you ask for, except that the link URLs it extracts can be relative so you need to concatenate a base to them.
In Section
Seekers of Perl Wisdom
|
|