I
inderpaul_s
I'm just trying to replace the words "hello" and "how" with "who" in
both cases in one single pattern expression. how can i do this ?
my $string = "hello how are you ?"
$string =~ s/(hello)(are)/who)/g;
print "$string";
both cases in one single pattern expression. how can i do this ?
my $string = "hello how are you ?"
$string =~ s/(hello)(are)/who)/g;
print "$string";