in reply to Listing all <a>...</a> tags in HTML file

It looks like HTML::TokeParser can do this. Look at the EXAMPLES section. There is even a tutorial here at the monastery on using this CPAN module.
  • Comment on Re: Listing all <a>...</a> tags in HTML file