App-SlowQuitApps
view release on metacpan or search on metacpan
lib/App/SlowQuitApps.pm view on Meta::CPAN
# This does the actual work, once all the calls set up what's to be done...
END {
_configure() if !$CONFIGURED;
}
# Export API...
sub import {
for my $subname (qw< delay slowquit fastquit >) {
no strict 'refs';
*{caller().'::'.$subname} = \&{$subname};
}
}
# Set delay...
sub delay {
my ($delay) = @_;
# Convert fractional seconds to integral milliseconds...
$DELAY = max(1, int($delay * 1000));
}
( run in 0.412 second using v1.01-cache-2.11-cpan-b61123c0432 )