http://qs1969.pair.com?node_id=55814


in reply to "Resetting" a file handle

You probably want to take a look at seek.
seek FILEHANDLE, 0, 0;
will reset a filehandle to the beginning of the file.