title: How to perform an "inner join on values" in perl
body: <p>I have two arrays in perl that I need to merge into one, based on their first 3rd column value, as described below;</p>
  
  <p><strong>Array1:</strong></p>
  
  <pre class="lang-none prettyprint-override"><code>0 1 3 some text
  
  0 1 6 more text
  
  1 2 0 and more
  </code></pre>
  
  <p><strong>Array2:</strong></p>
  
  <pre class="lang-none prettyprint-override"><code>0 1 3 where missing on page2
  
  1 2 0 to do with it
  
  0 1 6 to read on tuesday
  </code></pre>
  
  <p>And I want to achieve:</p>
  
  <pre class="lang-none prettyprint-override"><code>0 1 3 some text where missing on page2
  
  0 1 6 more text to read on tuesday
  
  1 2 0 and more to do with it
  </code></pre>
  
  <p>Can you please help and provide some explanation where necessary?</p>