in reply to WWW::Mechanize agent timing-out from server
What if you change the for to a while (@dates) and then simply shift the dates out of your array when each one is successfully processed?
That way, @dates will always contain the remaining work, and if there is a failure, you simply do not shift the array. (Or push the value back on after you shift it, so if there are impossible dates, you won't get stuck on it until after all good dates are done.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Mechanize agent timing-out from server
by cheech (Beadle) on Jul 28, 2009 at 21:10 UTC | |
by SuicideJunkie (Vicar) on Jul 28, 2009 at 21:15 UTC | |
by cheech (Beadle) on Jul 28, 2009 at 22:04 UTC | |
by Anonymous Monk on Jul 29, 2009 at 00:06 UTC | |
by SuicideJunkie (Vicar) on Jul 29, 2009 at 12:11 UTC | |
|
Re^2: WWW::Mechanize agent timing-out from server
by cheech (Beadle) on Jul 29, 2009 at 21:42 UTC | |
by Anonymous Monk on Jul 30, 2009 at 01:21 UTC |