title: How to pass special char to perl script?
body: <p>1) In php user enter: query like <code>'%key%'</code> or query like <code>'%door%'</code></p>
  
  <p>2) I am calling perl script as </p>
  
  <pre><code>ob_start();
  passthru("perl -w search.pl 'query');
  </code></pre>
  
  <p>3) In the perl if i print</p>
  
  <pre><code>print "query: $ARGV[0]\n"; 
  </code></pre>
  
  <p>4) It prints as 
  query like <code>^m'%key%'^M</code> or query like <code>^m'%door%'^M</code> </p>
  
  <p>Any suggestions to print as user entered value.</p>