Thorium::Utils - additional utilities
version 0.504
use Thorium::Utils; Thorium::Utils::block_new_invocations(); ... END { Thorium::Utils::unblock_new_invocations(); }
Creates a file lock on a temporary file, or you may pass in your own file name. The lock file handle is global and should not be tampered with outside the library interface.
Release the lock on the temporary file.
Pipe $text through a pager.
Returns 1 if the process ID listed in $filename and $executable are currently running, 0 otherwise.
$filename
$executable
Sends SIGTERM to $pid and waits up to 8 seconds for it be terminated.
SIGTERM
$pid
Executes @command and blocks until it finishes. Returns a true value if successful, false otherwise.
@command
fork()s @command and exec()s.
fork()
exec()
Adam Flott <adam@npjh.com>
This software is copyright (c) 2011 by Adam Flott <adam@npjh.com>, CIDC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Thorium, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Thorium
CPAN shell
perl -MCPAN -e shell install Thorium
For more information on module installation, please visit the detailed CPAN module installation guide.