You might want to have a look at Sub::Attempts.
Hope this helps, -gjb-
In reply to Re: retrying an action that could fail by gjb in thread retrying an action that could fail by perrin