diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-11-18 23:57:41 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-11-19 00:02:39 -0800 |
commit | 290797f7dfbf93d204db5c34eebe2c81a615284f (patch) | |
tree | 5cbd300e11e9cec701d1ce7b96397985e6587a6e /pp.c | |
parent | 12d079942585f448cddf9b45ec18f8629001cc53 (diff) | |
download | perl-290797f7dfbf93d204db5c34eebe2c81a615284f.tar.gz |
Mention implicit $_ in y///r uninit warning
This brings it into conformity with y without the /r.
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -753,9 +753,11 @@ PP(pp_trans) } TARG = sv_newmortal(); if(PL_op->op_type == OP_TRANSR) { - SV * const newsv = newSVsv(sv); + STRLEN len; + const char * const pv = SvPV(sv,len); + SV * const newsv = newSVpvn_flags(pv, len, SVs_TEMP|SvUTF8(sv)); do_trans(newsv); - mPUSHs(newsv); + PUSHs(newsv); } else PUSHi(do_trans(sv)); RETURN; |