NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:
First check the exit status of the command and check whether the $stdout and $stderr variables defined and print the values.