results in $x set to 0 and $y set to 256 (as long as there's no executable called "blahblah" in $PATH).$x = system("echo y"); $x = $x/255; #set $x to actual exit value $y = system("blahblah"); $y = $y/255; #set $y to actual exit value
In reply to Re: Obtaining a return code
by infoninja
in thread Obtaining a return code
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |