I used -
eithersystem("a.exe") print $?
but both prints:$retVal = system("a.exe"); print "$retVal\n";
Any idea why i get 256 and not 3 ? any solution% C++ retVal : 3 % 256
___________________________________
C++ code looks -Thanks azariaint main() { cout << "C++ retVal: 3" << endl; return 3; }
In reply to Returned Code by azaria
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |