Help for this page

Select Code to Download


  1. or download this
    my $error = join('', <$PROG_STDERR>)
        or die "Error reading data from STDERR: $!";
    
  2. or download this
    my $error = join('', <$PROG_STDERR>);
    my $err = $!;
    die "Error reading data from STDERR: $err"
        if !eof($PROG_STDERR);