- or download this
my $char = chr(226);
my $pat = quotemeta($char); # Create pattern that matches string
s/$pat/'/ig;
- or download this
my $char = chr(226);
s/\Q$char\E/'/ig; # Alternate way of calling quotemeta
- or download this
s/\xE2/'/ig; # 0xE2 == 226