"be consistent" | |
PerlMonks |
Re: Re-runnably editing a file in placeby Bilbo (Pilgrim) |
on May 22, 2003 at 09:54 UTC ( [id://260017]=note: print w/replies, xml ) | Need Help?? |
I think that the most reliable sequence would be:
Unless there is an interuption during the final renaming of the file your file should be in a sensible state whatever happens. Update: Sorry, that's what you're doing already, with the necessary step of making the file readable to move it. I'm not very awake at the moment. Just ignore me. I'm not sure if there would be any advantage in using the move function in File::Copy rather than rename. Is it more portable or reliable?
In Section
Seekers of Perl Wisdom
|
|