We don't bite newbies here... much | |
PerlMonks |
Re: "Resetting" a file handleby Trinary (Pilgrim) |
on Feb 01, 2001 at 23:38 UTC ( [id://55815]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|