Util::Medley::Spawn - utility methods for system commands
version 0.044
...
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], [$wantArrayRef]) ($stdout, $stderr, $exit) = $util->capture(cmd => $cmd, [stdin => $stdin], [wantArrayRefs => $wantArrayRef])
System command to invoke. Can be an arrayref or a string.
Stdin to pass to the command.
If true, returns stdout and stderr as array refs instead of strings. Default is 0.
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.