Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic


by root (Scribe)
on Dec 23, 1999 at 00:52 UTC ( #1221=perlfunc: print w/replies, xml ) Need Help??


See the current Perl documentation for IO::Seekable.

Here is our local, out-dated (pre-5.6) version:

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 constuctor of its own as is intended to be inherited by other IO::Handle based objects. It provides methods which allow seeking of the file descriptors.

If the C functions fgetpos() and fsetpos() are available, then IO::File::getpos returns an opaque value that represents the current position of the IO::File, and IO::File::setpos uses that value to return to a previously visited position.

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:



perlfunc, perlop, Handle File


Derived from by Graham Barr <>

Log In?

What's my password?
Create A New User
[Corion]: In other RSS news, I've updated my photo stream with images from Lanzarote
[choroba]: Corion Nice
[Corion]: Hi choroba! I'm somewhat fond of this picture - I think it is Breaking Bad-style even though I haven't watched the series at all ;)
[Corion]: Hmmm - and now that I look at it, the gallery I'm using doesn't produce non-Javascript compatible links in the sense that hotlinking to an image will only work for Javascript enabled...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-02-27 08:30 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (377 votes). Check out past polls.