in reply to retrying an action that could fail

You might could make your syntax a bit less cumbersome by using a & prototype (see perldoc perlsub) to eliminate the need for saying "sub" each time.

Replies are listed 'Best First'.
Re: Re: retrying an action that could fail
by perrin (Chancellor) on May 24, 2004 at 03:56 UTC
    It's a good thought. In this case I actually made it explicit like this on purpose so that I don't forget that I'm dealing with sub refs and get myself into trouble with scoping and memory leak issues. I used to have that happen with Error which uses the approach you're talking about.