in reply to Re: Using 'ord' in a regular expression for substitution
in thread Using 'ord' in a regular expression for substitution
There is a difference. The OP uses /i. If $string has the UTF-8 flag set both â and  will match $r = chr 226; s/$r/'/ig;. And if UTF-8 isn't set, there still may be a locale that plays a role.