in reply to Re: WWW::Mechanize agent timing-out from server
in thread WWW::Mechanize agent timing-out from server

I see what you mean, but this still does not help me automatically restart the program if it gets timed-out. I need to make it all the way up to 2009...?
  • Comment on Re^2: WWW::Mechanize agent timing-out from server

Replies are listed 'Best First'.
Re^3: WWW::Mechanize agent timing-out from server
by SuicideJunkie (Vicar) on Jul 28, 2009 at 21:15 UTC

    You should not restart the program. Simply continue instead of dying.

    If you need to trap Mechanize dying, then consider the use of eval

      Would this work in the same way as WWW::Mechanize->success() after submitting the form? I'm still confused on how to restart the loop at the current iteration..
        Can't use string ("WWW::Mechanize") as a HASH ref while "strict refs" in use at C:/Perl/site/lib/WWW/Mechanize.pm line 530.

        I am saying "don't exit the loop". Which means that you never need to restart it.
        What are you hearing?

        If you want to retry a specific loop iteration without moving on, try redo.