title: How do I pass $SHELL variable into a perl search and replace
body: <p>I have the following two commands :</p>
  
  <pre><code>value=`grep -o Logs\/.*txt\" textFILE`
  perl -i -wpe's/" onclick="img=document\.getElementById\('\''img_1'\''\); img\.style\.display = \(img\.style\.display == '\''none'\'' \? '\''block'\'' : '\''none'\''\);return false"/$value/' textFILE
  </code></pre>
  
  <p>However, I keep on getting a <code>Use of uninitialized value $value in concatenation (.) or string at -e line 1, &lt;&gt; line 56.</code> error. Can someone tell me what I am doing wrong.</p>