in reply to Re: Don't close filehandles (was: To Kill a Meme: while(defined($line = <>)) )in thread To Kill a Meme: while(defined($line = <>))
You are right, I didn't think of that. It is OK to do it when the file is open for read-only.