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

Re: Is this a /^*/ bug?

Thread Previous | Thread Next
A. Pagaltzis
March 26, 2013 02:14
Re: Is this a /^*/ bug?
Message ID:
* Zefram <> [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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About