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:
Dave Mitchell
Date:
February 25, 2015 16:56
Subject:
Re: [perl #123918] regex end of line match very slow
Message ID:
20150225165612.GH17807@iabyn.com
On Wed, Feb 25, 2015 at 11:07:32AM -0500, 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.

Ah, I misunderstood its purpose.

-- 
But Pity stayed his hand. "It's a pity I've run out of bullets",
he thought. -- "Bored of the Rings"

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