The typical way to tame 3rd party code in Perl is to wrap the "offending" call in eval and check $@ for the "exception"
my $temp; eval { $temp = $mech->get($imgsrc); } if ($@) { # alert the error }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re: handling WWW::Mechanize Error GETing
by jeffa
in thread handling WWW::Mechanize Error GETing
by NoSyu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |