You wanted an equivelent that uses the loop operators:
my $count=0; ATTEMPT:{ do_something() or ($count++ < $maximum and redo ATTEMPT) }
Style to taste. :-)
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
In reply to Re: retrying an action that could fail
by demerphq
in thread retrying an action that could fail
by perrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |