http://www.perlmonks.org?node_id=558827


in reply to zapping gremlins

I suspect that the ' character you're trying to substitute has a different ordinal value or encoding than the one actually contained in the string being acted upon. Could there be a character encoding issue here? I guess we need the actual input data and a little more of a snippet that reproduces the problem so as to provide a more definitive answer.


Dave