2010-08-11 251 views

回答

10

只需用適當的退出值退出Perl腳本即可。

exit $exit_value;

exit 0;

if ($problem) { exit 1 }

在shell腳本中,你將有平常$?檢查返回值。