title: Accessing global hash in a subroutine in Perl
body: <p>I have created a global hash and when I try to access that hash from within a Perl sub routine, it is not able to access it.</p>
  <p>I have declared it as:</p>
  <pre><code>`%HASH = ();`
  </code></pre>
  <p>and trying to access it in a subroutine as :</p>
  <pre><code>$HASH{$key} = $value;
  </code></pre>
  <p>Am I doing something wrong?</p>