in reply to XML::LibXML Issue
Perhaps http occasionally fails to fetch content? What you might want to do is eval in a loop (add some limit to the loop at your discretion):
my $dom; while (1) { $dom = eval{ XML::LibXML->load_xml(location => $xmlurl) }; last if $dom; print "Error getting xml-will retry: $@\n"; sleep 5; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: XML::LibXML Issue
by omegaweaponZ (Beadle) on Aug 16, 2013 at 20:09 UTC | |
by Anonymous Monk on Aug 17, 2013 at 11:32 UTC | |
by omegaweaponZ (Beadle) on Aug 17, 2013 at 17:09 UTC | |
by runrig (Abbot) on Aug 19, 2013 at 17:15 UTC | |
by Anonymous Monk on Aug 18, 2013 at 03:21 UTC |
In Section
Seekers of Perl Wisdom