Tie::MLDBM::Lock::File - Tie::MLDBM Locking Component Module
use Tie::MLDBM; tie %hash, 'Tie::MLDBM', { 'Lock' => 'File', 'Lockfile' => '/tmp/Tie-MLDBM-Lock-File.lock' } ... or die $!;
This module forms a locking component of the Tie::MLDBM framework, employing synchronisation through use of the flock function. This use of flock is performed with a temporary lock file which is specified in the Tie::MLDBM framework constructor.
flock
The temporary lock file which is used for synchronisation within the Tie::MLDBM framework may be specified by the 'Lockfile' element of the hash reference which is passed in the framework constructor. If this configuration argument is not specified, the file 'Tie-MLDBM-Lock-File.lock' within the current directory is employed.
Note that this module does not unlink created temporary lock files as this could interfere with locking and synchronisation of other instances of the Tie::MLDBM framework.
Rob Casey <robau@cpan.org>
Copyright 2002 Rob Casey, robau@cpan.org
Tie::MLDBM, Fcntl
To install Tie::MLDBM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tie::MLDBM
CPAN shell
perl -MCPAN -e shell install Tie::MLDBM
For more information on module installation, please visit the detailed CPAN module installation guide.