Help for this page

Select Code to Download


  1. or download this
    my $curpos = 0;
    my @offset;
    ...
    while (<$fh>) {
      $offset[++$curpos] = tell $fh;
    }
    
  2. or download this
    seek $fh, $offset[$cur], 0;