in reply to Re^3: RFC: UNIX shell to Perl converter
in thread RFC: UNIX shell to Perl converter
Indeed. $? is set by just about any command in the shell (I'm not talking csh here), including [, [[, and ((, so it can affect the entire script, not just forks. Handling this is central to the task.