title: How to insert hash into hash in Perl
body: <p>I have a simple hash defined somewhere in the main file</p>
  
  <pre><code>our %translations = (
      "phrase 1" =&gt; "translation 1",
      # ... and so on 
      );
  </code></pre>
  
  <p>In another file I want to add some more translations. That is, I want to do something like this:</p>
  
  <pre><code>push our %translations, (
      "phrase N" =&gt; "blah-blah",
      # ....
      "phrase M" =&gt; "something",
      );
  </code></pre>
  
  <p>Of course this code wouldn't work: <code>push</code> doesn't work with hashes. So my question is: what is a simple and elegant way to insert a hash of values into an existing hash?</p>
  
  <p>I wouldn't want to resort to</p>
  
  <pre><code>$translations{"phrase N"} = "blah-blah";
  # ....
  $translations{"phrase M"} = "something";
  </code></pre>
  
  <p>since in Perl you're supposed to be able to do things without too much repetition in your code...</p>