hary536 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a perl script, in which I call other applications(written in C++).
Each application has different return values meaning different things.
For example: Return value of 0: meaning key not found.
Return value of 1: key found
etc,etc.
Now, in my code, I have code as below:
Now, it prints the messages for each return value. But doesn't print the return value code like "0", "1", etc. How, can I just catch the return value instead of messages? Any advise? Thanks in advance.my $exec = "$Folder/OtherTool"; my $output = `$exec`; print "$output\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to catch the return code of another program?
by Athanasius (Archbishop) on Aug 28, 2012 at 02:54 UTC | |
by hary536 (Novice) on Aug 29, 2012 at 01:15 UTC | |
by Athanasius (Archbishop) on Aug 29, 2012 at 03:04 UTC | |
Re: How to catch the return code of another program?
by Anonymous Monk on Aug 28, 2012 at 02:53 UTC | |
by hary536 (Novice) on Aug 29, 2012 at 01:18 UTC |
Back to
Seekers of Perl Wisdom