"R. Joseph Newton" wrote: > > "John W. Krahn" wrote: > > > > rename $file, "$file.bak" or die "Cannot move $file to $file.bak: $!"; > > I would say that this is the wrong place for the rename. Computers do crash. > If a crash occurs while this program is in progress, then he is left with a > renamed original. Better to succesfully complete the processing, and then > rename the output file to the nput filename. I use .tmp instead of .bak when > doing this, since that better revflects the sequence.
Six of one, half a dozen of the other, remember TMTOWTDI. :-) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]