in reply to
Is it always necessary to lock a text file?
If the file is being written while you are reading, it may be neccesary to LOCK_SH to avoid reading an inconsistent partial update.
Comment on
Re: Is it always necessary to lock a text file?
In Section
Seekers of Perl Wisdom