On Thu, Aug 12, 2010 at 10:36:47AM -0600, karl williamson wrote: > I hadn't realized this, even though it was in the output of a program > that Tom sent me a long time ago. > > An example is that an underscore matches [[:^alnum:]] iff it is in a > utf8 string. I cannot reproduce that. That is, for me, "_" matches [[:^alnum:]] always (as it should): $ perl -wE '$_ = "_"; say /[[:^alnum:]]/' 1 $ perl -wE '$_ = "_"; utf8::upgrade $_; say /[[:^alnum:]]/' 1 $ perl -wE '$_ = "_"; utf8::downgrade $_; say /[[:^alnum:]]/' 1 $ (Same output in both 5.10.0 and 5.12.2) Since an underscore is neither alphabetical, nor numeric, I do not expect it to match /[[:alnum:]]/. AbigailThread Previous | Thread Next