Help for this page

Select Code to Download


  1. or download this
        my @lines = tied(*{$fh})->readlines(10);
    
  2. or download this
    # same as chunk_size => 1 in MCE
    $n_lines = mce_read $fh, \@lines, 1;
    ...
    
    $. gives chunk_id