title: Printing perl struct members
body: <p>I have a struct and would like to print out the contents within quotes</p>
  
  <pre><code>#!/usr/bin/perl
  
  use Class::Struct;
  
  struct( astruct =&gt; [ test =&gt; '$']);
  
  my $blah = new astruct;
  $blah-&gt;test("asdf");
  
  print "prints array reference: '$blah-&gt;test'\n";
  print "prints content: '", $blah-&gt;test, "'\n";
  </code></pre>
  
  <p>The output is </p>
  
  <pre><code>prints array reference: 'astruct=ARRAY(0x20033af0)-&gt;test'
  prints content: 'asdf'
  </code></pre>
  
  <p>Is there a way to print the contents within the quotes?</p>
  
  <p>Its making my code a bit scruffy having to open and close quotes all the time.  It's also problematic when using `` to run commands which use the contents of structs.</p>