attempt.pm

djberg96 on 2003-09-18T21:02:29

I see that Mark Fowler has released "Attempt" today. I've kinda been wanting something along the lines of Ruby's "retry" in Perl, and this looks like it might fit the bill nicely.

I specifically wanted it for failed DBI connections (for when the network goes flaky briefly, or a snapshot is occurring), which just happens to be the example he uses. Nice.

Update: Hah! I borked it with an evil $SIG{__DIE__} handler. >:)