title: How Do I Combine Two Files in Perl?
body: <p>I want to read in two input files and output a new file that contains one line that is a concatenation of each corresponding line from the two input files.  </p>
  
  <p>For instance:</p>
  
  <p>line 1 of the new output file would have:</p>
  
  <pre><code>info from input file 1, line 1 some number of tabs info from input file 2, line 1
  .
  .
  .
  </code></pre>
  
  <p>If either input file has more lines than the other the rest of the lines should be inserted into the output file in their correct position.</p>
  
  <p>Thanks.</p>