On Mon, 10 Jun 2002, Tom Brown wrote: > ?? AFAIK, Files opened in append mode, and written to without buffering, > should _not_ get corrupted in any manner that flock would prevent. > (basically small writes should be atomic.)
Right, and does Perl write with buffering when you call print()? Yes, it does! > that should be pretty universal for most UNIXs I've actually never heard this before. I've been taught that if you have multiple processes writing to one file you must use flock() or another equivalent mechanism to prevent overwrites. Do you have a source where I could learn about guaranteed atomic file writes without locking under UNIX? -sam