in reply to Naming file handles with variables?

...I realize that you can open multiple files at one time..
while ($line1 = <FILE1> || $line2 = <FILE2> || $line3 = <FILE3>) { #do stuff with each line }
The above one will not open multiple file. <FILE1> operator will just read from the filehanle FILE1, which has to be opened already by using open.

You can say open $fh,file1and read from that using while(<$fh>)

--Lakshmanan G.

The great pleasure in my life is doing what people say you cannot do.