Don't ask to ask, just ask | |
PerlMonks |
Re2: Mysterious Disapperance of file contentsby bbfu (Curate) |
on Aug 29, 2003 at 05:02 UTC ( [id://287589]=note: print w/replies, xml ) | Need Help?? |
Because you opened the semaphore file for writing, but haven't yet written to it, it's just been erased. Except that he's never (in the shown code, anyway) writing to the semaphore file. He's using a separate, presumably always-empty, file as the semaphore and is always opening the counter file in read or append... except possibly in writedata. bbfu
In Section
Seekers of Perl Wisdom
|
|