Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: 'seek' on a FileHandle.pm object

by twerq (Deacon)
on Apr 17, 2001 at 22:45 UTC ( [id://73288]=note: print w/replies, xml ) Need Help??


in reply to 'seek' on a FileHandle.pm object

I would look into using getpos() and setpos() for doing what you want.

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

/twerq

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://73288]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-06-15 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.