in reply to Merging files

Maybe File::IO is what you search for. In general you need one filehandle for every open file.
Boris