Thanks for that very detailed answer, but let me reduce my question to this:

#!/usr/bin/perl

$str = 'it's a smart quote';
if ($str =~ m/\x{2019}/){
  print "found"
} else {
  print "not found"
}

BBEdit confirms that the third char in 'it's a smart quote' is 2019, but the regex doesn't match, with or without "use utf8".
------------------------------------------------------------
               "Have You Validated Your Code?"
John Horner                            (+612 / 02) 8333 3488
Developer, ABC Kids Online            http://www.abc.net.au/
------------------------------------------------------------

Reply via email to