No such thing as a small change | |
PerlMonks |
Re: Perl 5.10.1 - compare external program output with a list of known error codesby Marshall (Canon) |
on Sep 20, 2016 at 00:17 UTC ( [id://1172191]=note: print w/replies, xml ) | Need Help?? |
You are capturing the output of a backtick operator. One thing is missing from this, the actual status of that command.
This might be helpful:
${^CHILD_ERROR_NATIVE} Under VMS this reflects the actual VMS exit status; i.e. it is the same as $? when the pragma use vmsish 'status' is in effect. This variable was added in Perl v5.10.0. I am thinking that this would give you the summary of "it worked or it didn't work?". Maybe that is helpful? Parsing the output of the command seems to be a difficult way to do that? If you want the last line of the backtick output, you can assign that to an array and then just look at the last line. On Windows:
In Section
Seekers of Perl Wisdom
|
|