in reply to Re^3: Safe to open+close for every write, with locking?
in thread Safe to open+close for every write, without locking?
Hi Ed,
In the actual module (File::Write::Rotate, now already uploaded to CPAN), I do use a zero-length dummy file (lock file).
Regarding not deleting the data file for every script: you have good eyes :) Actually I did truncate the file before each test, but I didn't include it in the post. So, my bad.
Also, thanks for comparing with syslog. Nice to know.
|
|---|