See WWW::Mechanize, about the autocheck parameter to the constructor.
In reply to Re: How to deal with error on Mechanize->get by Corion in thread How to deal with error on Mechanize->get by corpx