http://www.perlmonks.org?node_id=13066


in reply to How do I parse links out of a web page

See HTML::LinkExtor in the LWP module in the CPAN.