eval { $mech->get($url); }; if ($@) { if ($mech->status == 404) { # handle page not found } else { die "Mech failed to fetch '$url': $@"; } }
Cheers - L~R
In reply to Re: WWW::Mechanize - error on geting non-existing page
by Limbic~Region
in thread WWW::Mechanize - error on geting non-existing page
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |