http://www.perlmonks.org?node_id=471449


in reply to Re: Writing to a file atomically without renaming
in thread Writing to a file atomically without renaming

Very nice pragmatic solution! However I'm not in a situation where I can presume that I can chmod the parent dir at will.