in reply to How to read a file twice

some internal perl flag is set that the file end has been reached so any second open to the file gets nothing.

That's unlikely.  Re-opening a (regular, seekable) file should always allow for its contents to be read another time.  When opening a file for reading, the file pointer (indicating the position where to read from) is automatically set to the beginning.

Could you provide some code that demonstrates the issue?