lseek#
Reposition the read/write offset of an open fd.
Synopsis#
use POSIX qw(lseek SEEK_SET SEEK_CUR SEEK_END);
my $pos = lseek($fd, 0, SEEK_CUR); # current offset
What you get back#
The new absolute offset on success, -1 on failure (with $! set).
Differences from upstream#
Fully compatible with upstream POSIX.