<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 reply to Re: "Resetting" a file handle
by Trinary
in thread "Resetting" a file handle
by DeusVult
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |