title: In Perl, how can I read from multiple filehandles in one loop?
body: <p>I was wondering how I could implement this in Perl:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I'm not sure how to read one line at a time from two files in one <code>while</code> loop.</p>