System::Explain - run a system command and explain the result
use System::Explain "command, verbose, errors"; sys qw(ls -al);
The sys function runs a system command, checks the result, and comments on it to STDOUT.
sys
System::Explain is a standalone release of System, part of Gedcom v1.20 and earlier.
Say use System::Explain "list, of, options" to use this module. The options are: command (to print the command before running it), error (to report on the exit status), and verbose (to do both of those).
use System::Explain "list, of, options"
command
error
verbose
sys(@command); runs @command (by passing @command to system()) and optionally prints human-readable information about the result (specifically, about the return value of system()).
sys(@command);
@command
system()
Returns the return value of the system() call.
As "sys", but dies if the system() call fails.
IPC::System::Simple, Proc::ChildError, Process::Status (among others).
Copyright (C) 2012 Paul Johnson <pjcj@cpan.org>
Also Copyright (C) 1999-2012 Paul Johnson; Copyright (C) 2019 Christopher White
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Paul Johnson <paul@pjcj.net>
To install System::Explain, copy and paste the appropriate command in to your terminal.
cpanm
cpanm System::Explain
CPAN shell
perl -MCPAN -e shell install System::Explain
For more information on module installation, please visit the detailed CPAN module installation guide.