title: How do I add a new Key,Value pair to a Hash in an array of hash in perl?
body: <p>Hi I have a need to add a new key,value pair to the hash entries within an array of hashes. 
  Below is some sample code which does not work(simplified with only 1 array entry) The output of the print statement just contains the 1 entry.</p>
  
  <pre><code>my @AoH;
  push @AoH, { TEST1 =&gt; 'testvalue'  };
  for my $hash (@AoH)
  {
  $hash{'TEST2'} = 'testvalue2';
  print Dumper($hash);
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thank you.</p>