in reply to Help needed with mechanize

WWW::Mechanize does provides url_regex options you might interest in using it:
# untested! $agent->find_link(url_regex => qr/\d{6}/);
Well, it will also find links with more than 6 digits, but I think you got the picture.

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!