title: How can I retrieve a Perl hash value only if its key exists?
body: <p>Code:</p>
  
  <pre><code>%a =  ( 1 =&gt; "ONE" , 
          2 =&gt; "TWO" ,
          3 =&gt; " Three", ); 
  $test_value = 1 ;
  
  foreach $key (sort(keys %a)) {
      if  ($key == $test_value ) { 
          print $a{$key}; 
      }
  
  }
  </code></pre>
  
  <p>I just want to achieve the same operation in very short way.  Is there any shortcut for this?</p>