How can I extract URL and link text from HTML in Perl?
Posted
by anon
on Stack Overflow
See other posts from Stack Overflow
or by anon
Published on 2008-10-31T17:45:34Z
Indexed on
2010/06/14
21:32 UTC
Read the original article
Hit count: 176
I previously asked how to do this in Groovy. However, now I'm rewriting my app in Perl because of all the CPAN libraries.
If the page contained these links:
<a href="http://www.google.com">Google</a>
<a href="http://www.apple.com">Apple</a>
The output would be:
Google, http://www.google.com
Apple, http://www.apple.com
What is the best way to do this in Perl?
© Stack Overflow or respective owner