title: Pass string and temporary array into sub in 1 line?
body: <p>I made a subroutine that I want to pass a string and an array into:</p>
  
  <pre><code>sub pass_in {
      my ($str, $array) = @_;
      for my $e (@$array) {
          print "I see str $str and list elem: $e\n";  
      }
      return 0;
  }
  
  my @temp_arr =  qw(A B C D E);
  my $str = "hello";
  pass_in( $str, \@temp_arr );
  </code></pre>
  
  <p>This works fine, but I don't want to have to create a <code>temp_arr</code>. Is it possible to do?</p>
  
  <p>Doesn't work:</p>
  
  <pre><code>pass_in( $str, qw(A B C D E));
  </code></pre>
  
  <p>Also doesn't work:</p>
  
  <pre><code>pass_in( $str, \qw(A B C D E));
  </code></pre>
  
  <p>I don't want to create a temporary variable.</p>