Sweet::File::Semaphore
use Sweet::File::Semaphore; my $file = Sweet::File->new( dir => '/path/to/dir', name => 'foo.dat', ); my $semaphore = Sweet::File::Semaphore->new(linked_file=>$file); say $semaphore; # /path/to/dir/foo.dat.ok $semaphore->write;
Inherits from Sweet::File.
Instance of Sweet::File.
Returns ok.
ok
Returns "linked_file" dir.
Returns "linked_file" name suffixed with .extension.
.extension
Returns one line containing PID.
To install Sweet::Home, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sweet::Home
CPAN shell
perl -MCPAN -e shell install Sweet::Home
For more information on module installation, please visit the detailed CPAN module installation guide.