s#$methodname\((\Q$2\E)\)#private $methodname($2)#g
should fix it... although I am somewhat suspicious as to what you are doing with $2...
In reply to Re: substitution of a string with Square brackets.
by Melly
in thread substitution of a string with Square brackets.
by neeha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |