在我的小Perl脚本(test.pl)中,如果EXIT_STATUS等于1,我会执行以下操作以退出程序。
if ( $EXIT_STATUS == 1 )
{
system (exit);
}
但我还需要从test.pl获得返回代码1
例如:
./test.pl
echo $?
如何在EXIT_STATUS = 1时启用返回代码1?
lidia