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

Re: RFC: /w pattern modifier

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
February 10, 2015 13:43
Subject:
Re: RFC: /w pattern modifier
Message ID:
22489.1423575809@chthon
Ed Avis <eda@waniasset.com> 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.

--tom

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