I have a hash of values that replace holders within an rtf document. when one of the hash values ($dict{COMMENTS}) contains a single quote the whole value is not placed on the document.
This is what is being done:
foreach $key(%dict) {
$dict{$key}=~ s/\*/\\\*/g;
$dict{$key}=~ s/\'/\\\'/g; #THIS DOENS'T SEEM TO BE DOING ANYTHIGN
$text =~ s/\%$key\%/$dict{$key}/g;
}
Any suggestions?
This is what is being done:
foreach $key(%dict) {
$dict{$key}=~ s/\*/\\\*/g;
$dict{$key}=~ s/\'/\\\'/g; #THIS DOENS'T SEEM TO BE DOING ANYTHIGN
$text =~ s/\%$key\%/$dict{$key}/g;
}
Any suggestions?