title: Store result of a for loop in Perl as a single variable
body: <p>I'm currently printing a result in the for loop itself:</p>
  
  <pre><code>for (@data1, @data2, @data3) {
      print "$_" . " ";
  } 
  </code></pre>
  
  <p>Instead I want to process the loop quietly and store the entire result of the for loop as a variable, then print it separately like so:</p>
  
  <pre><code>print "$forloopresult";
  </code></pre>
  
  <p>How do I do that? Thanks!</p>