Next Lightweight Databases 19

Seek

        use Fcntl ':seek';    # For SEEK_SET etc.
        seek FH, $position, SEEK_SET;
        seek FH, $position, SEEK_CUR;
        seek FH, $position, SEEK_END;
        my $position = tell FH;
        # read, write, and seek FH here ...
        seek FH, $position, SEEK_SET;


Next Copyright © 2003 M. J. Dominus