in reply to Re: Returned Code
in thread Returned Code
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Returned Code
by jettero (Monsignor) on Jun 15, 2008 at 16:52 UTC | |
by ikegami (Patriarch) on Jun 15, 2008 at 17:01 UTC |