James Ratcliff wrote: > I am useing the LWP::Simple to retrieve webpages from the net > > I am having problems with loading some pages though because the page > will take forever... > > Sometimes it will return with nothing, IE no page found, but sometimes > it just searches forever. > > So, simply, how can I catch the ones that do not load after say a > minute, and continue the program.. >
use LWP::UserAgent instead, then $ua->timeout(10); #wait 10 seconds then we're out of here in order to figure out how to use the more complex UserAgent try: perldoc lwpcook perldoc LWP::UserAgent good luck! -- ___cliff [EMAIL PROTECTED]http://www.genwax.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]