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

Re: RFC: New regex modifier flags

Thread Previous | Thread Next
Jesse Vincent
August 4, 2010 06:13
Re: RFC: New regex modifier flags
Message ID:

On Tue, Aug 03, 2010 at 08:16:37PM -0400, David Golden wrote:
> On Tue, Aug 3, 2010 at 3:22 PM, karl williamson <> wrote:
> > This is another go round in what to do about this.  I hope this isn't too
> > long.  I give extensive background, and then a place to vote your preference
> > at the end.
> it's a very clear summary of the situation.  Thank you.
> > The problem is what those modifiers should be.  Perl currently allows a
> > keyword to come right after a regex, like '/abc/lt 1'  Code is being added
> > in 5.14 to deprecate that, but we are stuck with that until at least 5.16.
> I would suggest we reconsider whether this is really a "deprecation"
> situation.  Is there any documentation that states that such
> constructs are legal?  I was surprised to find that they are. I would
> have expected it to be a syntax error.  If we instead "fix the bug"
> that invalid regex flags are not detected as a syntax error, then we
> don't have to consider this a deprecated feature and we don't have to
> wait two years for a sane approach.  That may lead us to favor
> different options.

"Not documented" isn't really a great metric for "is fine to break
without notice" unless we turn it on with the 5.14 pragma.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About