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.)
In reply to Re: WWW::Mechanize agent timing-out from server
by SuicideJunkie
in thread WWW::Mechanize agent timing-out from server
by cheech
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |