in reply to Perl Mechanize script dies during success check

I believe the autocheck=>1 in your first line is your problem. This causes Mechanize to die on an I/O error. In older versions you could simply omit mention of autocheck, but it is now the default unless you are subclassing WWW:Mechanize, and you should explicitly use autocheck => 0