title: how to search a hash using the values and return the corresponding key upon success in perl
body: <p>I am looking for search implementation on hash using perl. I have following data in my hash</p>
  
  <pre><code>%hash = {0 =&gt; "Hello", 1=&gt; "world"}. 
  </code></pre>
  
  <p>Now i want to search the hash using the values (means world and hello) and return corresponding key.</p>
  
  <p>Example: I want to search for world and the result should be 1</p>