develooper Front page | perl.perl5.porters | Postings from February 2015

Re: [perl #123918] regex end of line match very slow

Thread Previous | Thread Next
From:
Karl Williamson
Date:
February 25, 2015 16:23
Subject:
Re: [perl #123918] regex end of line match very slow
Message ID:
54EDF702.7060302@khwilliamson.com
On 02/25/2015 09:07 AM, Matthew Horsfall (alh) wrote:
> On Wed, Feb 25, 2015 at 9:36 AM, Dave Mitchell <davem@iabyn.com> wrote:
>> * 5.21.8 and later include the /n modifier, which doesn't set $1 etc,
>> but it appears to be buggy in that it seems to still make the string COW.
>
> Is this a bug of /n?
>
> By design /n only prevents grouping parens from filling in $1, $2, etc...
>
> Other things like $&, named captures, etc still work.
>
> -- Matthew Horsfall (alh)
>

And, FWIW I think this is the correct design

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