in reply to Re: Capture external program return value
in thread Capture external program return value
Backticks are documented to return undef on errorAnd to further clearify, that's errors regarding the execution of the given program. The OP also mentions getting the return value - a non-zero exit code means (by convention) that the executed program encountered an error. In that case, backticks will not return undef. However, even backticks set $?, so the return value can be found as $? >> 8.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Capture external program return value
by ikegami (Patriarch) on May 02, 2010 at 16:44 UTC | |
by Anonymous Monk on May 02, 2010 at 16:51 UTC | |
by ikegami (Patriarch) on May 02, 2010 at 20:28 UTC |