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

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

Thread Previous | Thread Next
February 25, 2015 16:07
Re: [perl #123918] regex end of line match very slow
Message ID:
On Wed, Feb 25, 2015 at 9:36 AM, Dave Mitchell <> 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)

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