develooper Front page | perl.perl5.porters | Postings from September 2011

Re: [perl #92898] (*THEN) broken inside condition subpattern

Thread Previous | Thread Next
From:
Philip Hazel
Date:
September 26, 2011 03:11
Subject:
Re: [perl #92898] (*THEN) broken inside condition subpattern
Message ID:
alpine.LNX.2.00.1109241205130.10756@quercite.quercite.com
On Fri, 23 Sep 2011, Father Chrysostomos via RT wrote:

> > You will be please to hear that Jeff Friedl, who has only just 
> > discovered (*THEN) and friends - I guess he's been doing other stuff - 
> > agrees with your and Perl's interpretation. He even pointed out that
> > adding a non-matching alternation would change the behaviour. I haven't
> > had any responses from the mailing list I asked. So on a sample of one
> > third party, it looks like my intuition is invalid.
> 
> I wouldn’t say it’s invalid, as Perl’s documentation is a little
> unclear.  I hope I have clarified that with commit ac9d848.

Thanks.

No doubt that will eventually make it into a release and I'll see it. 
For your interest, two people on the pcre-dev list have now responded to 
the query, and they went for my interpretation. So at least I'm not 
alone, but I would of course prefer PCRE to be Perl-compatible. I'm 
still brooding about this.

Regards,
Philip

-- 
Philip Hazel
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