Perl_reg_named_buff_nextkey(pTHX_ REGEXP * const r, const U32 flags)
{
struct regexp *const rx = (struct regexp *)SvANY(r);
+ GET_RE_DEBUG_FLAGS_DECL;
PERL_ARGS_ASSERT_REG_NAMED_BUFF_NEXTKEY;
SV* sv_dat = HeVAL(temphe);
I32 *nums = (I32*)SvPVX(sv_dat);
for ( i = 0; i < SvIVX(sv_dat); i++ ) {
- if ((I32)(rx->lastcloseparen) >= nums[i] &&
+ if ((I32)(rx->lastparen) >= nums[i] &&
rx->offs[nums[i]].start != -1 &&
rx->offs[nums[i]].end != -1)
{
SV* sv_dat = HeVAL(temphe);
I32 *nums = (I32*)SvPVX(sv_dat);
for ( i = 0; i < SvIVX(sv_dat); i++ ) {
- if ((I32)(rx->lastcloseparen) >= nums[i] &&
+ if ((I32)(rx->lastparen) >= nums[i] &&
rx->offs[nums[i]].start != -1 &&
rx->offs[nums[i]].end != -1)
{
}
}
iseq($res,1,"$s~=/(?<D>(?<A>foo)\s+(?<B>bar)?\s+(?<C>baz))/");
- iseq($count,4,"Got 4 keys in %+ via each # TODO bug 50496");
- iseq(0+@k, 4, 'Got 4 keys in %+ via keys # TODO bug 50496');
- iseq("@k","A B C D", "Got expected keys # TODO bug 50496");
- iseq("@v","bar baz foo foo bar baz", "Got expected values # TODO bug = 50496");
+ iseq($count,4,"Got 4 keys in %+ via each -- bug 50496");
+ iseq(0+@k, 4, 'Got 4 keys in %+ via keys -- bug 50496');
+ iseq("@k","A B C D", "Got expected keys -- bug 50496");
+ iseq("@v","bar baz foo foo bar baz", "Got expected values -- bug = 50496");
eval'
print for $+{this_key_doesnt_exist};
';