in reply to Re: Is "die" the best way to be atomic?
in thread Is "die" the best way to be atomic?
I like your idea of the undo() function, but am not sure it would be feasible in either case, meaning I am not sure if there would be a way to actually undo what had occurred. One way I might be able to cover myself on the rsync is to first run the rsync with the --dry-run option, and as long as all goes well run it without. Is there any kind of "dry run" in perl? Does eval or try work in that way - in that it tries to do it, but doesn't actually do it unless it is sucessful?
-Shane
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Is "die" the best way to be atomic?
by castaway (Parson) on Apr 27, 2004 at 17:00 UTC |