while(1) { eval { do_something_that_may_die(); }; last unless $@; print "Something blew up: $@\nRetrying..."; }
In reply to Re: catching failures and retrying
by friedo
in thread catching failures and retrying
by mickey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |