But that won't tell you whether the program has specified its exit code as a negative number. All you get is the least significant eight bytes of the value.my $exit_code = $? >> 8; $exit_code -= 256 if $exit_code > 127;
Anno
In reply to Re^3: Reading return value from C program
by Anno
in thread Reading return value from C program
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |