perlpreben has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know how I set a timeout value on the WWW::Spider module ?

Replies are listed 'Best First'.
Re: how to set timeout on WWW::Spider?
by moritz (Cardinal) on Apr 16, 2010 at 12:00 UTC
    You can set a timeout on the user agent object that you pass to WWW::Spider.
    Perl 6 - links to (nearly) everything that is Perl 6.
      Do you (or anyone) have an example on how this is done?
      I tried numerous attemps, but Im not too familiar with how to do that. None of my attempts worked, like appending timeout => '1' to it.
        The LWP::UserAgent documentation is quite clear on how to add a timeout on the UserAgent object, and has an example.