title: Perl hash equivalent in bash scripting?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1494178/how-to-define-hash-tables-in-bash">How to define hash tables in bash?</a>  </p>
  </blockquote>
  
  
  
  <p>Perl hash equivalent in bash ? 
  Please let me know.</p>
  
  <p>Following code is working perfectly in korn shell, however not in bash [3.2 version], getting error for typeset.     </p>
  
  <pre><code>#!/bin/ksh 
  typeset -A newmap 
  name="mandar"
  id="111515" 
  newmap["name"]=$name
  newmap["id"]=$id 
  echo "${newmap["id"]}"
  </code></pre>