This is my code:
$html = 'Is this a question? Maybe.';
$old = 'question?';
$new = 'reply?';
$html =~ s/$old/$new/g;
print $html; exit;
Output is:
Is this a reply?? Maybe.
Desired ouput:
Is this a reply? Maybe.
What am I doing wrong? Thank you.