HTML::LinkExtractor is used for extracting links from HTML. It is very similar to HTML::LinkExtor, except that besides getting the URL, you also get the link-text. WWW: https://metacpan.org/release/HTML-LinkExtractor