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

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

Thread Previous | Thread Next
From:
Eric Brine
Date:
May 18, 2010 12:27
Subject:
Re: PATCH: [perl #58182] partial, "The Unicode Bug". Add unicode semantics for \s, \w
Message ID:
AANLkTintjc2THDZV9Bm6Jg1Xr91KwwkTpiS63LxiLLEG@mail.gmail.com
On Tue, May 18, 2010 at 1:52 PM, karl williamson <public@khwilliamson.com>wrote:

> I asked Yves privately about this, and he wonders if it is worth trying to
> not break constructs like '/foo/lt +2'
>

(nit: Even if we use "l", breaking "lt" can be avoided by looking ahead for
"t" since "t" is not a valid modifier. "le" is a different matter.)

Possible solutions that don't require using weird names:

   -


   - Have users use /foo/el or /(?l:foo)/e instead of /foo/le if they want
   locale semantics.


   - These new modifiers will require Perl 5.14 to compile, so requiring a
   "use 5.014;" to use them would not add any restrictions and would sidestep
   the entire dilemma.

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