I was wondering how I could implement this in Perl:
while ( not the end of the files )
$var1 = read a line from file 1
$var2 = read a line from file 2
# operate on variables
end while
I'm not sure how to read one line at a time from two files in one while loop.