develooper Front page | perl.perl5.porters | Postings from November 2012

[perl #114816] Bleadperl v5.17.3-254-g2c7b5d7 breaks VPIT/re-engine-Plugin-0.09.tar.gz

From:
Father Chrysostomos via RT
Date:
November 27, 2012 15:08
Subject:
[perl #114816] Bleadperl v5.17.3-254-g2c7b5d7 breaks VPIT/re-engine-Plugin-0.09.tar.gz
Message ID:
rt-3.6.HEAD-17500-1354057703-599.114816-15-0@perl.org
On Mon Sep 10 04:27:20 2012, perl@profvince.com wrote:
> On 10/09/2012 13:18, Dave Mitchell wrote:
> > It's the test's expectations that are wrong:
> >
> > The test is basically:
> >
> >      "a" =~ /a/;
> >      ...
> >      is(${^PREMATCH}, 10, '${^PREMATCH}');
> >
> > but ${^PREMATCH} etc are documented to only have a valid value directly
> > after /.../p. The fact that previously they sometimes had values even in
> > the absence of the p flag was an implementation detail.
> 
> I agree and I'll update the test accordingly.

As of 1a904fc880, this is no longer the case.  ${^PREMATCH} will work as
used here.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=114816



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About