You should not restart the program. Simply continue instead of dying.
If you need to trap Mechanize dying, then consider the use of eval
In reply to Re^3: WWW::Mechanize agent timing-out from server
by SuicideJunkie
in thread WWW::Mechanize agent timing-out from server
by cheech
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |