"be consistent" | |
PerlMonks |
Re^2: Perl 5.10.1 - compare external program output with a list of known error codesby dasgar (Priest) |
on Sep 19, 2016 at 18:23 UTC ( [id://1172163]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|