Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Randomly working script using LWP::Simple

by tcf22 (Priest)
on Nov 28, 2003 at 00:53 UTC ( [id://310624]=note: print w/replies, xml ) Need Help??


in reply to Randomly working script using LWP::Simple

Check the return value and try grabbing the file a few times.
my $i = 0; while(1){ if($settingstext = get($settingsurl)){ last; }else{ if(++$i == 5){ print "Can't get $settingsurl\n"; ##More error handling stuff here } } }

- Tom

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://310624]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found