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

Re: Any opposition still to the idea of syntax indicating defaultregex modifiers?

Thread Previous | Thread Next
From:
karl williamson
Date:
August 11, 2010 10:46
Subject:
Re: Any opposition still to the idea of syntax indicating defaultregex modifiers?
Message ID:
4C62E1D6.7010705@khwilliamson.com
Ben Morrow wrote:
> Quoth public@khwilliamson.com (karl williamson):
>> +Starting in Perl 5.14, a C<.> (dot) immediately after the C<?> is a
>> +shorthand equivalent to C<-imsx>.  Any positive or negative flags may
>> +follow the dot, so
>> +
>> +    (?.x-i:foo)
>> +
>> +is equivalent to
>> +
>> +    (?x-ims:foo)
>> +
>> +(The C<-i> wasn't necessary, but did no harm.)
> 
> FWIW I'm not convinced allowing (?.-i:

Please explain your concerns.

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