>>>>> "Scott" == Scott <[EMAIL PROTECTED]> writes:
Scott> http://www.red2.org/dailykount.txt
Yup, no locking whatsoever. Two hits come through at the same time
and BLAMMO, you get a zero count because one is reading the empty
file that the other is creating.
See File::CounterFile in the CPAN for a working solution that requires
very little programming. See a programmer if you don't want to do
the programming yourself.
And based on this example, I'd avoid *ANY* code that comes
from
# A Script of World of Scott #
# http://worldofscott.virtualave.net #
as someone who needs to be hit with a clue bat about three more times.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!