in reply to handling WWW::Mechanize Error GETing
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: handling WWW::Mechanize Error GETing
by bh4017 (Initiate) on Dec 28, 2016 at 18:44 UTC | |
by Anonymous Monk on Dec 28, 2016 at 22:40 UTC | |
by haukex (Archbishop) on Dec 29, 2016 at 11:25 UTC | |
by Anonymous Monk on Dec 29, 2016 at 21:59 UTC |