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

Re: "Resetting" a file handle

by Trinary (Pilgrim)
on Feb 01, 2001 at 23:38 UTC ( [id://55815]=note: print w/replies, xml ) Need Help??


in reply to "Resetting" a file handle

seek!

<code>seek FH,0,0; will put it back to the beginning. Check docs for more arguments, etc. You might also want to check out info on $., which is the current line number of the last filehandle that was read from, written to, or seeked.

Enjoy!

Trinary

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://55815]
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: (6)
As of 2024-04-18 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found