title: skip the "Unmatched ( in regex; marked by <-- HERE in" error in perl
body: <p>I have to replace certain String in a file with a new string. I used the following statement.</p>
  
  <pre><code> $tobereplaced="SFK_DFKDG_ASDf(SDGFds gfd"; #example string
   $replace="SFK_DFKDG_ASDf(SDGFds gfd processed"; #example String
   $value =~ s/$tobereplaced/$replace/g;
  </code></pre>
  
  <p>While replacing I got this error
  Unmatched ( in regex; marked by &lt;-- HERE in ... </p>
  
  <p>How to avoid this error? Please help me.</p>