Help for this page

Select Code to Download


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