Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: LWP::Simple Seems to Hang on get

by Abigail-II (Bishop)
on Nov 06, 2003 at 23:08 UTC ( #305185=note: print w/replies, xml ) Need Help??

in reply to Re: Re: LWP::Simple Seems to Hang on get
in thread LWP::Simple Seems to Hang on get

Perhaps you are impatient? The page contains 680 players, and you sleep for 15 seconds for each player. So, even if the fetching and scanning takes no time at all, it's still going to take 2 hours and 50 minutes for your program to finish. I took the sleep out, and your program seems to be running fine.


Replies are listed 'Best First'.
Re: Re: LWP::Simple Seems to Hang on get
by svsingh (Priest) on Nov 07, 2003 at 00:01 UTC

    I realize that the script will take a while to run and that's why I added the print STDERR statement. Thinking the problem was that maybe those statements weren't printing immediately, I set $|=1. It doesn't seem to be helping. I'm rerunning the code and it's stuck again, this time at the second iteration.

    Anyway, thanks for your help. I'm now using LWP::Simple::getstore to save the files locally. I hope that by running the script against local files, I'll be able to bypass whatever's holding up the get calls.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2021-06-15 15:44 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (72 votes). Check out past polls.