in reply to WWW::Mechanize Error "GETing" stop the program,

See WWW::Mechanize on autocheck. This makes HTTP errors appear as Perl errors, which usually helps you if you are not checking for errors yourself. If you pass in autocheck => 0, then you will need to start checking for errors yourself:

if ($mech->get( $file, ':content_file' => "myFile$fileIndex.txt" ) +) { ... } else { # signal error to user };

Replies are listed 'Best First'.
Re^2: WWW::Mechanize Error "GETing" stop the program,
by RedGrinGo (Novice) on Apr 15, 2010 at 08:34 UTC

    Even when the "autocheck" is set to default which is 1 the program still exit

      I didn't say anything about setting autocheck to 1. I specifically mentioned setting autocheck => 0, which is documented in WWW::Mechanize.