Think about Loose Coupling | |
PerlMonks |
Re: Is it always necessary to lock a text file?by Anonymous Monk |
on Dec 18, 2000 at 21:38 UTC ( [id://47218]=note: print w/replies, xml ) | Need Help?? |
Locking the file is not necessary when reading only, and
when writing only if there is a possibility of more than
one write happening simultaneously (as in the case of a
cgi script or multi-user environment) If you are the only
person using your script, or if it is a standalone script
that only runs on one machine, locking is not necessary.
In Section
Seekers of Perl Wisdom
|
|