develooper Front page | perl.perl5.porters | Postings from February 2015

Re: RFC: /w pattern modifier

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
February 9, 2015 03:49
Subject:
Re: RFC: /w pattern modifier
Message ID:
20150209034859.1485.qmail@lists-nntp.develooper.com
Ricardo Signes wrote:
> * Karl Williamson <public@khwilliamson.com> [2015-02-08T00:51:58]
> > It has now occurred to me that a lot of existing \b uses really would work
> > better if they were \b{wb}.  And that can be accomplished without having to
> > change every occurrence, by instead having a pattern modifier flag, which
> > could be in a 'use re "/w"' which says treat plain \b as \b{wb} in its
> > scope.                               
> 
> I agree with your first sentence.
> 
> Is your thinking that people...
> 
> * will want to use /w
> * want some way of changing the behavior in all regexes in some scope
> * specifically want "use re '/w'" rather than just the above generically
> 
> I feel like Perl may soon be suffering from flag fatigue.

I think I agree with you, at least for this case.


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