I'm running a perl script in red hat linux that counts the number of times it has run. My problem is that when 10 or more instances of it is run at the same time, my counter somehow resets to zero for a reason I cannot understand. The only safeguard I have against this phenomenon is file locking (flock) but it seems flock is not bulletproof.
What can you suggest? Is there a perl module that can handle this sort of thing?
Thanks in advance.