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

Re: RFC: New regex modifier flags: decision made

Thread Previous | Thread Next
karl williamson
August 13, 2010 08:28
Re: RFC: New regex modifier flags: decision made
Message ID:
A few of us hashed this out off-line, so I'm documenting the decision.

I will submit a patch soon that adds modifiers for the character set 
semantics for the regex.  That patch will only have them as infix, that 
is, in (?:...) clusters.  They will be 'l', 'u', and 'd'.

If these are to be also made suffix modifiers (/l, /u, /d) in 5.14, 
Jesse wants it enabled by a pragma to avoid any backwards compatibilty 
issues.  They can be made suffixes in 5.16 without this pragma, as we 
are already deprecating the backwards compatibility issues in 5.14. 
Since I disagree with this decision, writing that pragma is low on my 
list of 5.14 priorities but anyone is certainly free to do so.

But I don't think they will be used much as suffixes anyway, as they are 
automatically inserted: 'l' under 'use locale'; 'u' under 'use feature 
"unicode_strings"'; and 'd' otherwise.  I don't see much need to 
over-ride these on an individual regex basis, so don't see much need for 
the suffix modifiers.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About