develooper Front page | perl.perl5.porters | Postings from May 2010

Re: PATCH: [perl #58182] partial, "The Unicode Bug". Add unicodesemantics for \s, \w

Thread Previous | Thread Next
From:
Paul LeoNerd Evans
Date:
May 25, 2010 07:37
Subject:
Re: PATCH: [perl #58182] partial, "The Unicode Bug". Add unicodesemantics for \s, \w
Message ID:
20100525143730.GJ11110@cel.leo
On Mon, May 24, 2010 at 07:15:12AM -0600, karl williamson wrote:
> >>    m/unicode    /Uugx;
> >>    m/locale     /Ulgx;
> >>    m/traditional/Utgx;
> 
> Somehow, I'm a little leery of this, but I can't put my finger on
> it. I'll wait a little longer to see what others may say.
> 
> One thing though if we do go this route, I think that U isn't as
> good a choice as maybe M for "matching mode", as Ul really isn't
> about Unicode: it is about locale.

Another thought on 'U' comes to mind - no keyword starts with a capital
U. That means we can't possibly break existing syntax doing

  m/pattern/KEYWORD

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About