in reply to Re: Re: Mysterious Disapperance of file contents
in thread Mysterious Disapperance of file contents

Therefore, when the server is busy, and the semaphore lock fails, the counter file is clobberred by another instance of the prog.

No. The code says:

flock(SEM, LOCK_EX) || die "Lock failed: $!"

If a lock fails, the program exits, so it can't clobber.

Abigail