title: Why does a scalar variable that contains a code snippet not getting stored in a CSV file properly?
body: <p>I have a variable <code>$code = \'print "Hello World";'</code>.</p>
  
  <p>When I try to write this value in a CSV file using perl, I see something like <code>SCALAR(0x6ac7890)</code> under the CODE column in the CSV. I was expecting <code>print "Hello World";</code> under the column. Can someone please clarify what has went wrong here?</p>