Name
seek
Synopsis
$fh
->seek(
offset
, whence
)
Description
Front-end for the corresponding built-in seek
function, which
sets a filehandle’s position in the file.
Takes the following arguments:
- offset
The offset where you want to set the position.
- whence
The position in the file that the offset is relative to. Possible values are:
0
for the beginning of the file,1
for the current position, or2
for end of file. May also be expressed as the following constants, which are exported:
Get Perl in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.