in reply to [Solved] print() on unopened filehandle error

With

select($entry[0]);

you seem to make FH the current filehandle. Most likely because some part of the lines you're reading evaluates to (the fileno) of FH, for example, 3, which usually is the next free filehandle in many programs. See select.