Avoids (among other things), localised pos index being trashed at
scope exit.
p4raw-id: //depot/perl@30627
mg->mg_flags &= ~MGf_GSKIP; /* setting requires another read */
(SSPTR(mgs_ix, MGS*))->mgs_flags = 0;
}
+ if (PL_localizing == 2 && !S_is_container_magic(mg))
+ continue;
if (vtbl && vtbl->svt_set)
CALL_FPTR(vtbl->svt_set)(aTHX_ sv, mg);
}
$x = "test string?"; $x =~ s/\w/pos($x)/eg;
is($x, "0123 5678910?");
-TODO: {
- $x = "123 56"; $x =~ / /g;
- is(pos($x), 4);
- { local $x }
- local $TODO = "RT #1716: search position reset after 'local' save/restore";
- is(pos($x), 4);
-}
+$x = "123 56"; $x =~ / /g;
+is(pos($x), 4);
+{ local $x }
+is(pos($x), 4);