I have a Perl script which has a string which may or may not contain character 146 in the ASCII character codes. I'm interested in using the chr() function inside a regular expression to find out if that string really does contain that character. If the character is there, I would like to substitute it with a "'" character.
Is this possible? If not what's another way to do this?
This one has my stumped. Thanks!