title: Tcl Script OR Perl?
body: <p>I wish to replace the following verilog code by using scripting.</p>
  
  <pre class="lang-verilog prettyprint-override"><code>assign x0 = in0 + in7;
  </code></pre>
  
  <p>I wish to search for the "+" sign above and replace the whole line with the line below:</p>
  
  <pre class="lang-verilog prettyprint-override"><code>KSA_32 U1(.A(in0), .B(in7), .Sum(x0));
  </code></pre>
  
  <p>any suggestion and sample script on this?</p>