Hi, Try like this,
Untested
$line =~ s#$methodname\((\Q$2\E)\)#private $methodname($2)#g
Regards,
Velusamy R.
In reply to Re: substitution of a string with Square brackets.
by Samy_rio
in thread substitution of a string with Square brackets.
by neeha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |