Just another Perl shrine | |
PerlMonks |
Re: Capture Exit Code Using Pipe & Teeby ikegami (Patriarch) |
on Jan 31, 2007 at 20:55 UTC ( [id://597635]=note: print w/replies, xml ) | Need Help?? |
Not quite. It's returning the error code of the shell invoked to execute the command. system sometimes, but not always, passes the command to /bin/sh. This is one of those times. See the docs for details.
In Section
Seekers of Perl Wisdom
|
|