title: How to reference a split expression in Perl?
body: <p>I want to create a reference to an array obtained by a split in Perl.
  I'm thinking something like:</p>
  
  <pre><code>my $test = \split( /,/, 'a,b,c,d,e');
  
  foreach $k (@$test) {
     print "k is $k\n";
  }
  </code></pre>
  
  <p>But that complains with <code>Not an ARRAY reference at c:\temp\test.pl line 3.</code>
  I tried a few other alternatives, all without success.</p>