Name

sysseek

Synopsis

sysseek filehandle, offset, whence
                  

A variant of seek( ) that sets and gets the file’s system read/write position using the lseek(2) system call. It’s the only reliable way to seek before a sysread( ) or syswrite( ). Returns the new position, or undef on failure. Arguments are the same as for seek.

Get Perl in a Nutshell, 2nd Edition 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.