On Aug 23, Carl W Rogers said:
>I don't know if this is possible... But I'm trying to replace the high-hex
>symbol for one-half (\xBD) with 1/2
No, you have to use a substitution (s///) for that. tr/// is for
character-to-character translations.
>$variable =~ tr/[\xBD]/"1/2"/;
Good day;
I don't know if this is possible... But I'm trying to replace the high-hex
symbol for one-half (\xBD) with 1/2
This is what I've tried so far:
$variable =~ tr/[\xBD]/"1/2"/; #tr doesn't like this, so I tried...
$replacement = "1/2";
$variable =~ tr/[\xBD]/$replacemen