Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Best method for failure recovery?by MZSanford (Curate) |
on Sep 20, 2001 at 13:12 UTC ( [id://113552]=note: print w/replies, xml ) | Need Help?? |
This is a problem i have faced many times, and ended up writting some really odd code to reuse. But, most of the time, i found goto to be a fine solution. There will be people who will down vote this because the "dislike" goto, though i would guess they have never used it, and have only read that it is bad. But, goto does require a moments thought. What i have done is something like the following (untested): I have worked with production operation groups for some time now, and have found that they seem to prefer named restart "steps" as opposed to numbers. <minirant>While this may be diffrent where you are, unless you want to be the person up as night on the phone telling them the numbers, i suggest named steps and a good document.</minirant> my own worst enemy -- MZSanford
In Section
Seekers of Perl Wisdom
|
|