Help for this page

Select Code to Download


  1. or download this
    sub FETCH {
      my ($self, $n) = @_;
    ...
        if defined $rec && $self->{autochomp};
      $rec;
    }
    
  2. or download this
    # Chomp one record in-place; return modified record
    sub _chomp1 {
    ...
      substr($rec, - $self->{recseplen}) = "";
      $rec;
    }