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