in reply to Using more than one filehandle
open (FILE1, "file1.txt") or die "Can't read file1: $!";
open (FILE2, "file2.txt") or die "Can't read file2: $!";
#.... do whatever you need to each file, accessing them by the
# appropriate filehandle.
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (369 votes). Check out past polls.