title: perl one line regex escape ^ character
body: <p>I have line starting with ^ character, I want to start of line and ^charater. but its not wokring.</p>
  
  <pre><code>echo "^./mnt/" |perl -slane ' print if m#^$line$#o' -- -line="^./mnt/"
  </code></pre>
  
  <p>how can I match this regex with input regularexpression passed as argument.</p>
  
  <p>this one works, but I would like to make it work with-in perl.</p>
  
  <pre><code>#echo "^./mnt/" |perl -slane ' print if m#^$line$#o' -- -line="\\^./mnt/"
  ^./mnt/
  </code></pre>
  
  <p>Thanks
  SR</p>