If you mean the exit code of the executable, then you need to print $? >> 8 if the return value from system is non-zero
system( 'perl -e"exit( 123 )"' ) and print $? >> 8; 123 ## or system( $command ) == 0 or die 'Failed with: ', $? >> 8;
In reply to Re: Calling Windows Executable from script
by BrowserUk
in thread Calling Windows Executable from script
by dtharby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |