Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 having a coffee break in the Monastery: (4)
As of 2024-04-23 06:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found