I have a string that looks like the following:
prop_1=val1 prop_2=val2 prop_3=val3
I want to replace the entirety of one of the tokens so the string looks like:
prop_1=val1 prop_X=valX prop_3=val3
I have tried
$params =~ s/prop_2=val2/prop_X=valX/ig;
but nothing is changing. What am I doing wrong?