Help for this page

Select Code to Download


  1. or download this
    while (my @chunk = get_chunk(\*IN, 10)) {
      # etc
    ...
      push @result, scalar <$fh> foreach 1..$count;
      return @result;
    }
    
  2. or download this
    my $sub = chunker(\*IN, 10);
    while (my @chunk = $sub->()) {
    ...
        return @ret;
      };
    }