Check HTML::LinkExtor.
In reply to Re: Counting links in a file? by Fletch in thread Counting links in a file? by DigitalKitty