diff options
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -284,8 +284,11 @@ PP(pp_concat) } else { /* $l .= $r and left == TARG */ if (!SvOK(left)) { - if (left == right && ckWARN(WARN_UNINITIALIZED)) /* $l .= $l */ - report_uninit(right); + if ((left == right /* $l .= $l */ + || (PL_op->op_private & OPpTARGET_MY)) /* $l = $l . $r */ + && ckWARN(WARN_UNINITIALIZED) + ) + report_uninit(left); sv_setpvs(left, ""); } else { |