Util::Medley::Spawn - utility methods for system commands
version 0.012
...
Toggle for to enable/disable confess on error. Default is 1.
Executes system command and returns the stdout, stderr, and exit values. Will write to log if enabled.
($stdout, $stderr, $exit) = $util->capture($cmd, [$stdin]) ($stdout, $stderr, $exit) = $util->capture(cmd => $cmd, [stdin => $stdin])
System command to invoke. Can be an arrayref or a string.
Stdin to pass to the command.
Executes system command and returns the exit value. Will write to log if enabled.
$exit = $util->spawn($cmd); $exit = $util->spawn(cmd => $cmd);
To install Util::Medley, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Util::Medley
CPAN shell
perl -MCPAN -e shell install Util::Medley
For more information on module installation, please visit the detailed CPAN module installation guide.