title: Error: Not a HASH reference
body: <p>I have pieve of code that I am trying to assign the return value but I see the following error. Appreciate if someone can let me know why am I getting this error.</p>
  
  <p>Error: Not a HASH reference at  line </p>
  
  <pre><code>sub getid {
     my ($a, $b) = @_;
     my $id = 1 &lt;&lt; $a + 1 &lt;&lt; $b;
     return $id;
  }
  
  my $tip;
  $tip-&gt;{'tock'}-&gt;[0]-&gt;{'brick'} = getid(2, 3);  &lt;== This is where I am having issue.
  </code></pre>