title: Perl hash dereferencing
body: <p>I am working through Intermediate Perl by brian d foy (2nd ed). I'm on the section dealing with references to hashes. I have run one of the scripts in Strawberry Perl and I'm not sure I'm getting the intended results. the script is:</p>
  
  <pre><code> my %gilligan_info = (
    name     =&gt; 'Gilligan',
    hat      =&gt; 'White',
    shirt    =&gt; 'Red',
    position =&gt; 'First Mate',
  );
  my %skipper_info = (
    name     =&gt; 'Skipper',
    hat      =&gt; 'Black',
    shirt    =&gt; 'Blue',
    position =&gt; 'Captain',
  );
  my @crew = (\%gilligan_info, \%skipper_info);
  
  my $format = "%−15s %−7s %−7s %−15s\n";
  printf $format, qw(Name Shirt Hat Position);
  for my $crewmember (@crew) {
    printf $format, @$crewmember{qw(name shirt hat position)};
  }
  </code></pre>
  
  <p>The output I am seeing is </p>
  
  <p><a href="https://i.stack.imgur.com/WKbMJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WKbMJ.png" alt="enter image description here"></a></p>
  
  <p>I thought this example was going to show actual values, but I am just seeing memory addresses (I think)..</p>
  
  <p>Can somebody please advise
  thanks
  John</p>