in reply to Re: Changing the output filehandle while iterating input files.
in thread Changing the output filehandle while iterating input files.

You've got it backwards. eof without the parentheses is what works between files. eof() is only true after the last file.