2010-08-11 256 views

回答

10

只需用适当的退出值退出Perl脚本即可。

exit $exit_value;

exit 0;

if ($problem) { exit 1 }

在shell脚本中,你将有平常$?检查返回值。