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

Re: RFC: /w pattern modifier

Thread Previous | Thread Next
Ricardo Signes
February 9, 2015 02:32
Re: RFC: /w pattern modifier
Message ID:
* Karl Williamson <> [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.


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