There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

File::BasicFlock - file locking with flock

SYNOPSIS

use File::BasicFlock;

lock($filename);

lock($filename, 'shared');

lock($filename, undef, 'nonblocking');

lock($filename, 'shared', 'nonblocking');

unlock($filename);

DESCRIPTION

Lock files using the flock() call. The file to be locked must already exist. This is a very thing interface.

AUTHOR

David Muir Sharnoff, <muir@idiom.com>