title: How can I separate Perl variables from text in interpolated strings?
body: <p>Consider:</p>
  
  <pre><code>print "    $foo", "AAAAAAAA", $foo, "BBBBBBBB";
  </code></pre>
  
  <p>Let's say I want to use this code with a <code>print &lt;&lt;EOF;</code>:</p>
  
  <pre><code>print &lt;&lt;EOF;
      $fooAAAAAAAA$fooBBBBBBBB";
  EOF
  </code></pre>
  
  <p>That won't work, because Perl thinks I have a variable called <code>$fooAAAAAAAA</code>. How can I easily use <code>print &lt;&lt;</code> with such lines when I have a long test to print?</p>