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
In reply to Re: Update in-place with temporary file and flocking
by cees
in thread Update in-place with temporary file and flocking
by geohar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |