Hi,
I had this issue when i had to write a similar script. Mechanize aborts when there is a broken link. Probably you can achieve your task using LWP::Simple and HTML::SimpleLinkExtor.
Thanks.
A perl Script without 'strict' is like a House without Roof; Both are not Safe;