Skip to content

Commit 6200d5a

Browse files
author
Father Chrysostomos
committed
Revert "[perl #118747] Allow in-place s///g when !!PL_sawampersand"
This reverts commit 1555b32. This is causing test failures (not on my machine), and I do not have time right now to track them all down.
1 parent 7ce41e5 commit 6200d5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pp_hot.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,6 +2159,7 @@ PP(pp_subst)
21592159
&& !is_cow
21602160
#endif
21612161
&& (I32)clen <= RX_MINLENRET(rx)
2162+
&& (once || !(r_flags & REXEC_COPY_STR))
21622163
&& !(RX_EXTFLAGS(rx) & RXf_NO_INPLACE_SUBST)
21632164
&& (!doutf8 || SvUTF8(TARG))
21642165
&& !(rpm->op_pmflags & PMf_NONDESTRUCT))

0 commit comments

Comments
 (0)