Message-ID: <87fyqc51bu.fsf@k75.linux.bogus>
p4raw-id: //depot/perl@25993
prog->subbeg = PL_bostr;
prog->sublen = PL_regeol - PL_bostr; /* strend may have been modified */
}
- prog->startp[0] = startpos - PL_bostr;
+ /* prog->startp[0] = startpos - PL_bostr; */
PL_reginput = startpos;
PL_regstartp = prog->startp;
PL_regendp = prog->endp;
#endif
REGCP_SET(lastcp);
if (regmatch(prog->program + 1)) {
+ prog->startp[0] = startpos - PL_bostr;
prog->endp[0] = PL_reginput - PL_bostr;
return 1;
}
# bug #19049
$_="abcdef\n";
@x = m/./g;
-ok("abcde" eq "$`", '# TODO #19049 - global match not setting $`');
+ok("abcde" eq "$`", '#19049 - global match not setting $`');
ok("123\x{100}" =~ /^.*1.*23\x{100}$/, 'uft8 + multiple floating substr');
$s = $1;
$s = $2;
ok($s eq 'cd',
- "# TODO assigning to original string should not corrupt match vars");
+ "# assigning to original string should not corrupt match vars");
}
# last test 1187