title: Understanding Perl pointers to hashes in my script
body: <p>So I know how the split is working, my question is how the pointer $p is working here. Does it have a different value for each iteration, and the value gets pushed on to the hash as an array? Is that how it will keep those values together when I need to extract them? I have over 100 lines of values I need to reference back to and I'm not sure how it will do that if $p is not changing with each iteration. Thanks!</p>
  
  <pre><code>else{
    my($site,$x,$y) = split /,/, $_; 
    my $p;
    $p-&gt;{site} = $site; 
    $p-&gt;{x} = $x; 
    $p-&gt;{y} = $y; 
    push @{$die_loc{$pattern}}, $p;
  }
  </code></pre>