Apologies if this question is too simple, I'm a newcomer here.
I'm using ksh. I'm defining a variable, and then I want to replace the occurrence of "string1" in that var to "string2". Here's how I do it.
$a =~ s/string1/string2/g
I get an error message:
ksh: string1: not found
Please, can you tell me what I'm doing wrong?
Thank you very much...