title: writing the values of variables to file. the value is got changed automatically
body: <pre><code>temp="This is the \\, example"
  perl -pi -e "s/new.*/$temp/" tmp.txt
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>cat tmp.txt
  This is the \, example
  </code></pre>
  
  <p>In the above example the output should contain double <code>\</code>. but it contain only one <code>\</code>.
  is there is any reason?</p>