in reply to parse out anchor text
The HTML::LinkExtractor module can get you the text in the anchor tags. There is an example in the docs which shows which options to enable.