http://qs321.pair.com?node_id=416584


in reply to Re: Regular expressions and accents
in thread Regular expressions and accents

If you're using locales
Or have marked your data as unicode:
$ perl -we'$x = "\xff"; print 0 + $x =~ /\w/' 0 $ perl -we'$x = "\xff"; utf8::upgrade($x); print 0 + $x =~ /\w/' 1