my $args = quotemeta $2; $line =~ s#$methodname\(($args)\)#private $methodname($1)#g;