Help for this page

Select Code to Download


  1. or download this
    # An non-blocking filehandle read that returns an array of lines read
    # Returns:  ($eof,@lines)
    ...
                ? $1 : '';
      $buf ? (0,split(/\n/,$buf)) : (0);
    }
    
  2. or download this
    $fh = new IO::File;
    open($fh,"$cmd 2>&1 |");
    ...
    } until $eof;
    
    close $fh;