title: How can I output a list as comma-separated values in Perl?
body: <p>Let's say I have a list of elements</p>
  
  <pre><code>@list=(1,2,3);
  #desired output
  1,2,3
  </code></pre>
  
  <p>and I want to print them as comma separated values. Most importantly, I do not want the last element to have a comma after it.</p>
  
  <p>What is the cleanest way to do this in Perl?</p>