File::BasicFlock - file locking with flock
use File::BasicFlock; lock($filename); lock($filename, 'shared'); lock($filename, undef, 'nonblocking'); lock($filename, 'shared', 'nonblocking'); unlock($filename);
Lock files using the flock() call. The file to be locked must already exist. This is a very thing interface.
David Muir Sharnoff, <muir@idiom.com>
To install File::BasicFlock, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::BasicFlock
CPAN shell
perl -MCPAN -e shell install File::BasicFlock
For more information on module installation, please visit the detailed CPAN module installation guide.