pat_mc has asked for the
wisdom of the Perl Monks concerning the following question:

Esteemed Monks -

I am currently writing a simple script based on the Mechnize module to download a bunch of PDFs from a website. The problem I am encountering is that the site seems to contain a link which points to a document that is unavailable on the server. As a result, the GET method returns the following error:

Error GETing <URL>: Not Found at extract.pl line 86

I have tried to incorporate robust handling of such error messages like this:

The WWW::Mechanize documentation at CPAN explains the option 'onerror'.
Try using it, it may help ;-)
Since yo did not set any options, Mechanize falls back to the standards it's author found most helpful.
Wolfgang