IO::Seekable(3perl) | Perl Programmers Reference Guide | IO::Seekable(3perl) |
IO::Seekable - supply seek based methods for I/O objects
use IO::Seekable; package IO::Something; @ISA = qw(IO::Seekable);
"IO::Seekable" does not have a constructor of its own as it is intended to be inherited by other "IO::Handle" based objects. It provides methods which allow seeking of the file descriptors.
See perlfunc for complete descriptions of each of the following supported "IO::Seekable" methods, which are just front ends for the corresponding built-in functions:
The SEEK_* constants can be imported from the "Fcntl" module if you don't wish to use the numbers 0 1 or 2 in your code.
Returns 1 upon success, 0 otherwise.
Returns the new position, or "undef" on failure. A position of zero is returned as the string "0 but true"
perlfunc, "I/O Operators" in perlop, IO::Handle IO::File
Derived from FileHandle.pm by Graham Barr <gbarr@pobox.com>
2023-11-25 | perl v5.32.1 |