httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@engelschall.com (Ralf S. Engelschall)
Subject Re: cvs commit: apache-1.3/src/helpers UpdateHide
Date Thu, 05 Mar 1998 15:09:24 GMT

In article <34FE9F5B.99285C2B@Golux.Com> you wrote:
> Ralf S. Engelschall wrote:
>> 
>> In article <34FD56F2.7129B797@Golux.Com> you wrote:
>> > Ralf S. Engelschall wrote:
>> >>   -        next if ($name =~ m:^ap(_)|(api):);
>> >>   +        next if ($name =~ m/^ap(?:_|api)/);
>> 
>> > I'm not going to veto, but I *am* going to complain: I find
>> > this an UNimprovement.  IMO it makes things harder to read
>> > rather than easier.  What's your point?
>>
>> Hmm... seems like either you are not such familiar with Perl regex ...

> Not expertly familiar, no - and I can't find this syntax in the camel
> book, either (just ?= and ?!).  As I said, I would rather a syntax
> easily understandably by casual readers, not esoteric stuff that
> does exactly the right thing but isn't obvious about it.

Sure, I agree in general. 
For the (?:) stuff please look at perlre(1) which explains it, Ken.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message