AlwaysSurprised has asked for the wisdom of the Perl Monks concerning the following question:
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?
Back to
Seekers of Perl Wisdom