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


in reply to Jiggy w/ LinkExtor

use HTML::TokeParser. It really does a good job of parsing out links.

an example would be here

-p