- or download this
sub DieWithCode {
my $numerical_exit_code = shift;
my $msg = shfit;
...
exit ($numerical_exit_code);
}
- or download this
sub DieWithCode {
my $numerical_exit_code = shift;
my $msg = shfit;
...
print $msg;
exit ($EXITCODE);
}
- or download this
my $e;
{
...
}
printf "AppAction failed ($e)\n" if $e;
$EXITCODE = 0;