in reply to
How to read a file twice
Have a look at
seek
to reset the filehandle's position
.
Comment on
Re: How to read a file twice
In Section
Seekers of Perl Wisdom