develooper Front page | perl.perl5.porters | Postings from March 2013

Re: Is this a /^*/ bug?

Thread Previous | Thread Next
From:
A. Pagaltzis
Date:
March 26, 2013 02:14
Subject:
Re: Is this a /^*/ bug?
Message ID:
20130326021420.GB28606@fernweh.plasmasturm.org
* Zefram <zefram@fysh.org> [2013-03-25 17:40]:
> What's the alternative? If the "*" is interpreted as a quantifier
> (which is how you read it), the only thing it can be quantifying is
> /^/. The observed behaviour is the perfectly regular result of
> applying the quantifier to the anchor. A match failure would require
> some irregular rule, which would be uglier.

Should zero-width assertions in general be quantifiable at all? What
would be the fallout of making that a compile-time error? If too bad,
what of optimising them away with a specially worded warning?

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