Help for this page

Select Code to Download


  1. or download this
    my $output = `batch_file args`;
    die "Gone horribly wrong - $?" if $?;
    # or ...
    my @output = `batch_file args`;
    die "Gone horribly wrong - $?" if $?;
    
  2. or download this
    my $output = `batch_file args && exit /b ERRORLEVEL`;
    die "Gone horribly wrong - $?" if $?;
    # or ...
    my @output = `batch_file args && exit /b ERRORLEVEL`;
    die "Gone horribly wrong - $?" if $?;