title: How can I take a reference to specific hash value in Perl?
body: <p>How do I create a reference to the value in a specific hash key.  I tried the following but $$foo is empty.  Any help is much appreciated.</p>
  
  <pre><code>$hash-&gt;{1} = "one";
  $hash-&gt;{2} = "two";
  $hash-&gt;{3} = "three";
  
  $foo = \${$hash-&gt;{1}};
  $hash-&gt;{1} = "ONE";
  
  #I want "MONEY: ONE";
  print "MONEY: $$foo\n";
  </code></pre>