App-Highlander
view release on metacpan or search on metacpan
lib/App/Highlander.pm view on Meta::CPAN
or
use App::Highlander LOCKDIR => "$ENV{HOME}/.locks";
...
=head1 DESCRIPTION
Simple module that provides a named locking mechanism based on flock. Application code requests a lock, then executes, then releases the lock. Lockfiles are stored in a temporary directory created by File::Temp::tempdir( CLEANUP => 1 ) by default. Yo...
App::Highlander does *not* currently (and may never) handle errors, this means that if your application dies under Highlander then it will not have released the lock. Application code will need to capture the error with eval or a sugary module like T...
=head1 NAME
App::Highlander
=head1 METHODS
=over 4
=item C<get_lock>
( run in 0.760 second using v1.01-cache-2.11-cpan-05444aca049 )