in reply to substitution of a string with Square brackets.
my $args = quotemeta $2; $line =~ s#$methodname\(($args)\)#private $methodname($1)#g; [download]