Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
There's more than one way to do things
 
PerlMonks  

Re: 'seek' on a FileHandle.pm object

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.