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

Re: RFC: /w pattern modifier

Thread Previous | Thread Next
Tom Christiansen
February 10, 2015 13:43
Re: RFC: /w pattern modifier
Message ID:
Ed Avis <> wrote on Tue, 10 Feb 2015 10:35:09 GMT: 
>> The use-case I was think of was someone using plain \b when they
>> really wanted \b{wb} in a program.

> I think you should define an explicit \b{o} for 'ordinary' which is
> the current semantics of \b.  Then people will be able to audit their
> code for all uses of \b and either change it to \b{wb} or to \b{o}.
> Perlcritic and other tools will be able to help with that.

This might not be a bad idea.  However, using "o" to specify it might be.


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