Keep It Simple, Stupid | |
PerlMonks |
Re: flock issueby turnstep (Parson) |
on Mar 15, 2001 at 03:49 UTC ( [id://64562]=note: print w/replies, xml ) | Need Help?? |
You must open a file with write permission in order to secure an exclusive lock. Also, you should be checking the result of your open calls. You can use the read/write mode "+<" to open it for writing without clobbering anything that is there. Use seek to move about once you have opened it so.
In Section
Seekers of Perl Wisdom
|
|