|We don't bite newbies here... much|
Checking links with LWP::UserAgentby wilstephens (Acolyte)
|on Feb 26, 2002 at 13:12 UTC||Need Help??|
wilstephens has asked for the wisdom of the Perl Monks concerning the following question:
I've written the below sub to check all URLs in my database and return a error message for each individual URL if the status code returned is not 200.
The sub works, but is slow. I've got 20 entries in my database at the moment, and the following sub takes just over 11 seconds to check all 20 entires.
Does anyone know of a (much) faster way of doing this? Is LWP::UserAgent the way to go, or is the way I'm accessing my MySQL slow?
Would selecting url from database be a lot faster than selecting * (all fields)? Should I get all results first into an array or hash and then output them instead of outputting one by one?
Thanks for any help you can give me!
Wiliam Stephens <email@example.com>