in reply to unix $? problem
0 /Users/john 0 csh: HA: Undefined variable.
When Perl executes a one-argument system command and the string contains shell metacharacters like ;, it runs the command by passing it to sh -c. I don't see any documented way to change this.
However, you could useor whatever your shell is.system ("csh","-c","echo \$?; echo \$PWD; echo \$?; echo \$HA; echo \$ +\?");
|
|---|