Just another Perl shrine | |
PerlMonks |
Re^5: Writing to a file atomically without renamingby Transient (Hermit) |
on Jun 30, 2005 at 23:16 UTC ( [id://471507]=note: print w/replies, xml ) | Need Help?? |
Your cat must be different than mine..( a cat of a different color?) my "cat backup_file > file" won't destroy both the backup_file and the main file in the event that the backup_file was unable to overwrite the file. A simple diff between the two before removing the backup file is all that would be needed.
In Section
Seekers of Perl Wisdom
|
|