I am trying to change the @ sign in the string to a \@ so that I can use the string as part of a mail command.
The error I get is
Can somebody tell me how to format the special characters?
Code:
$vSendTo = "myname@ochsner.org"; # over-ride $vSendTo
$vSendTo =~ s/@/\\@\;
print "\t$vSendTo\n";
The error I get is
Code:
$ perl reqNoteTest_sh
Substitution replacement not terminated at reqNoteTest_sh line 2.
Can somebody tell me how to format the special characters?