|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: File lockingby LD2 (Curate) |
| on Jul 12, 2001 at 15:50 UTC ( [id://96078]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
It's a good idea to lock the file using lock shared or LOCK_SH when reading a file, that way no one can manipulate it while someone reads it (i.e. delete or write to it) but others can read it as well. You may want to check out turnstep's Tutorial on File Locking.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||