P
Peng Yu
my $string = "The act sat on the mta";
$string =~ s/act/cat/;
The above command will change the content of $string. Is there a way
not to update the input string but to return me a new string.
$string =~ s/act/cat/;
The above command will change the content of $string. Is there a way
not to update the input string but to return me a new string.