Next Lightweight Databases 25

Binary Search

            if ($mid) {
              seek $fh, $mid-1, SEEK_SET;
              my $junk = <$fh>;
            } else ... 
            my $start = tell $fh;
            my $rec = <$fh>;



Next Copyright © 2003 M. J. Dominus