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.
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"
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()).
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 <email@example.com>
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 <firstname.lastname@example.org>
To install System::Explain, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.