IO::File::AtomicChange - change content of a file atomically. This module truncate and write to temporary file. When you call $fh->close, replace target file with temporary file preserved permission and owner (if possible).