in reply to Re: Perl 5.10.1 - compare external program output with a list of known error codes
in thread Perl 5.10.1 - compare external program output with a list of known error codes

Since you're using backticks, you're only capturing the STDOUT output of the PGP commands, but the error messages that you're wanting to check possible could be sent to STDERR instead. You could redirect STDERR to STDOUT by adding 2>&1 to the end of the PGP commands. Another alternative is to use Capture::Tiny, which will capture STDOUT, STDERR and exit code for external commands.

  • Comment on Re^2: Perl 5.10.1 - compare external program output with a list of known error codes
  • Download Code