summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-11-02 20:19:25 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-11-02 21:32:34 -0700
commitbb16bae836f8e26795fbfac1361bf85da0d6a912 (patch)
treeb71601a317ae4fc0b2f334d106d4d7815a86e708 /pp.c
parent4eedab498fc909c786cceea9a6f3a70fa4433f9b (diff)
downloadperl-bb16bae836f8e26795fbfac1361bf85da0d6a912.tar.gz
y///r
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index de72d4e21c..1386f386ce 100644
--- a/pp.c
+++ b/pp.c
@@ -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;
}