Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: How to download html with threads?

by misc (Pilgrim)
on Aug 01, 2007 at 11:42 UTC ( #630025=note: print w/replies, xml ) Need Help??


in reply to Re: How to download html with threads?
in thread How to download html with threads?

Just for completeness..
I believe your code should end with
sleep 1 while $running; close(NAMES);

I'd always prefer a self written solution above an existing module, if it's not too complicated.
You'll learn this way, besides using an existing module can sometimes be more expensive than write your own code,
since you'll have to learn the api and possibly to deal with unexpected behaviour.

I'm not sure about what you're going to do (30000 planets??), but if you'll have to fetch the data regularly it would perhaps be senseful to save the modification time of the web sites along with your data, and compare later just the modification time of the online pages with your locally stored data.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://630025]
help
Chatterbox?
[stevieb]: debugged my first very low-level C memory issue within a shared library with gdb so I did :D
[stevieb]: problem was in my code, but through the debugger I figured out what was actually happening, and why. Pretty straight forward after a few hours of reading and testing

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-06-25 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (568 votes). Check out past polls.