Next Lightweight Databases 82

Indexing Revisited

        sub find {
          my ($fh, $dbm, $key) = @_;
          my $offset = $dbm->{$key};
          seek $fh, $offset, SEEK_SET;
          my $rec = <$fh>;
          return $rec;
        }


Next Copyright © 2003 M. J. Dominus