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

Re: RFC: New regex modifier flags

Thread Previous | Thread Next
From:
Eric Brine
Date:
August 6, 2010 11:16
Subject:
Re: RFC: New regex modifier flags
Message ID:
AANLkTikuQnHPVtjSV4Cq67mxmpt-eW6kLPmXS2gc0R0s@mail.gmail.com
On Fri, Aug 6, 2010 at 7:36 AM, karl williamson <public@khwilliamson.com>wrote:

> I did an analysis of this, and it turns out that the only ambiguous case is
> 's/foo/bar/le'.
>

$ perl -c -e'/foo/le 1'
-e syntax OK

$ perl -c -e'/foo/lt 1'
-e syntax OK

$ perl -c -e's/foo/bar/le 1'
-e syntax OK

$ perl -c -e's/foo/bar/lt 1'
-e syntax OK

That's 4 for "/l" alone, not counting the various permutations of modifiers
that you could place before the "l".

On Fri, Aug 6, 2010 at 7:36 AM, karl williamson <public@khwilliamson.com>wrote:

> Why can't we just say in the pods and warning message that '/le'  must be
> written as '/el' in 5.14?
>

Because it doesn't help.

$ perl -c -e's/foo/bar/ele 1'
-e syntax OK

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