If you check the system page, you'll see that you (probably) need to use the $?...
$? is set to the return value of system are the same thing. I don't see the point of using a global variable when not needed.
I think you'll looking for $? >> 8.
Yes, or $retVal >> 8.
I don't know why he's getting 256 (Error code 1) instead of 768 (Error code 3), but that's not a Perl issue.
In reply to Re^2: Returned Code
by ikegami
in thread Returned Code
by azaria
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |