Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: HowTo retrieve the position in a file from the FH

by reasonablekeith (Deacon)
on Mar 13, 2006 at 16:41 UTC ( [id://536302]=note: print w/replies, xml ) Need Help??


in reply to HowTo retrieve the position in a file from the FH

You just want to use setpos, instead of seek.
$fh->setpos($pos) ; # go back
getpos returns an "opaque value" that represents the position in the file, it isn't just a numeric offset.
---
my name's not Keith, and I'm not reasonable.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found