LA.pm: Exlusive write lock

Samy Kamkar [CommPort5] CommPort5 at LucidX.com
Sun Jul 1 19:24:20 CDT 2001


Arkadiy Sudarikov wrote:
> 
> How do I set an exlusive write lock on file? Since they changed
> www.perl.com, I can't find shit.

use Fnctl ':flock';
flock(FH, LOCK_EX); # LOCK_EX should be 2 on most systems

btw, I think you're time is off :)
-Sam



More information about the Losangeles-pm mailing list