in reply to Update in-place with temporary file and flocking

How about IO::AtomicFile? I don't think it will eliminate the possibility of 2 writers at the same time, but you could combine this module with a lock file to gain exclusive write access to the file (you could block readers this way as well if you needed to).

- Cees

  • Comment on Re: Update in-place with temporary file and flocking