diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-11-02 20:19:25 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-11-02 21:32:34 -0700 |
commit | bb16bae836f8e26795fbfac1361bf85da0d6a912 (patch) | |
tree | b71601a317ae4fc0b2f334d106d4d7815a86e708 /pp.c | |
parent | 4eedab498fc909c786cceea9a6f3a70fa4433f9b (diff) | |
download | perl-bb16bae836f8e26795fbfac1361bf85da0d6a912.tar.gz |
y///r
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -775,7 +775,12 @@ PP(pp_trans) EXTEND(SP,1); } TARG = sv_newmortal(); - PUSHi(do_trans(sv)); + if(PL_op->op_type == OP_TRANSR) { + SV * const newsv = newSVsv(sv); + do_trans(newsv); + mPUSHs(newsv); + } + else PUSHi(do_trans(sv)); RETURN; } |