seek filehandle, offset, whence
- Positions the file pointer for filehandle, just like the
fseek(3) call of standard I/O. The first position in a file is at offset , not offset , and offsets refer to byte positions, not line numbers. The function returns upon success, otherwise. For handiness, the function can calculate offsets from various file positions for you. The value of whence specifies which of three file positions your offset is relative to: , the beginning of the file; , the current position in the file; or , the end of the file. offset may be negative for a whence of or .