NAME

PID::File::Guard - Provides scope guard to remove the pid file automatically.

Methods

Class Methods

new

my $guard = PID::File::Guard->new( sub { $pid_file->remove } );

Creates a new guard token that will call the supplied sub when it goes out of scope.