in reply to Naming file handles with variables?
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.while ($line1 = <FILE1> || $line2 = <FILE2> || $line3 = <FILE3>) { #do stuff with each line }
You can say open $fh,file1and read from that using while(<$fh>)
The great pleasure in my life is doing what people say you cannot do.
|
|---|