Is this not the right way to test to see whether or not a page loaded via WWW::Mechanize? Every time I load this script it fails but I know the site I'm working with is loading because I load it in my browser.
use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
$mech->content($search_page);
if (!$mech->success())
{
print "ISite didn't respond";
exit;
}