in reply to Upgrade to 5.18 causes uninitialized ${^MATCH}

I can reproduce it with the following code, which works in 5.16.x and broke in 5.18.0:
my $pat = qr/a/; 'aaaa' =~ /$pat/gp or die; print "MATCH=[${^MATCH}]\n";
Given that it was probably me who broke it, looks like I'll have to get it fixed for 5.18.1.

Dave.

Replies are listed 'Best First'.
Re^2: Upgrade to 5.18 causes uninitialized ${^MATCH}
by dave_the_m (Monsignor) on May 28, 2013 at 11:08 UTC
    Now given ticket RT #118213

    Dave.

Re^2: Upgrade to 5.18 causes uninitialized ${^MATCH}
by cdarke (Prior) on May 28, 2013 at 13:25 UTC
    It appears to depend on qr.
    my $pat = qr/a/p; 'aaaa' =~ /$pat/g or die; print "MATCH=[${^MATCH}]\n";
    Appears to work OK on 5.18.0.
Re^2: Upgrade to 5.18 causes uninitialized ${^MATCH}
by nbtrap (Sexton) on May 29, 2013 at 01:55 UTC

    Yes, I overlooked the fact that $pat in my original example was pre-compiled with qr//.