title: perl regex variable with slashes
body: <p>I need a perl regex to check if $currentSearch is present in $currentLine. 
  The check should include that $currentLine has "Load" keyword in it.</p>
  
  <p>match</p>
  
  <pre><code>$currentSearch = DNA/3/44.com/index.html
  </code></pre>
  
  <p>TO</p>
  
  <pre><code>$currentLine = Load DNA/3/44.com/index.html .....(3)
  </code></pre>
  
  <p>I tried this but it's not matching...</p>
  
  <pre><code>if($currentLine[$k] =~ m/Load\s+$currentSearch[$i]\s+\.+\\(d+\)/)
  </code></pre>
  
  <p><strong>EDIT</strong>
  even this does not work</p>
  
  <pre><code> if($currentLine[$k] =~ m/$currentSearch[$i]/)
  </code></pre>