title: Why does my Perl print show HASH(0x100a2d018)?
body: <p>Here I am thinking I know how to use lists in Perl, when this happens. If I do this (debugging code, prettiness not included): </p>
  
  <pre><code>#! /usr/bin/perl -w
  use strict;
  
  my $temp1 = "FOOBAR";
  my $temp2 = "BARFOO!";
  
  my @list = { $temp1, $temp2 };
  
  print $temp1; #this works fine
  print $list[0]; #this prints out HASH(0x100a2d018)
  </code></pre>
  
  <p>It looks like I am printing out the address of the second string. How do I get at the actual string stored inside the list? I assume it has something to do with references, but dunno for sure.</p>