title: Perl compare 2 hashes for differences
body: <p>I have these 2 hashes below. First one is a template, second one is the users settings.</p>
  
  <p>I need to be able to create a loop that goes over the second hash and if it finds a difference (a value exists in the first one but not the second) then it needs to do something with that key &amp; value (lets just say print it)</p>
  
  <pre><code> $VAR1 = {
        'Hotkeys' =&gt; [
                       'key',
                       'keyCR',
                       'keyHighlight',
                       'updated'
                     ],
        'Actions' =&gt; [
                       'action',
                       'actionCR',
                       'actionHighlight'
                     ],
        'Settings' =&gt; [
                        'chbAcronym',
                        'chbCompleted'
                      ],
        'NewSetting' =&gt; [
                          'NewValue'
                        ]
      };
  
  $VAR1 = {
        'Hotkeys' =&gt; [
                       'key',
                       'keyCR',
                       'keyHighlight'
                     ],
        'Actions' =&gt; [
                       'action',
                       'actionCR',
                       'actionHighlight'
                     ],
        'Settings' =&gt; [
                        'chbAcronym',
                        'chbCompleted'
                      ]
      };
  </code></pre>