My grabbing URLs to sniff out some data is working pretty much as I expect it to work, but just occasionally my script aborts.
Invariablly, it crashes out at.
my $dom = $ua->get($targetURL) -> result;giving an error of "inactivity timeout" or "premature connection close". Now I'm not bothered what the cause is, but I would like a way of reacting to the error. I've hunted about but I can't see anything I can grab on to. What am I missing?
In reply to Reacting to Mojo::UserAgent Errors by AlwaysSurprised
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |