in reply to
Flock
To lock an open filehandle:
flock FH, 2;
[download]
To unlock the file:
close FH;
[download]
You don't need to explicitly unlock the file. Just
close
it.
How can I lock a file?
Comment on
Re: Flock
Select
or
Download
Code
In Section
Seekers of Perl Wisdom