summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-11-23 13:03:06 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-11-24 01:45:29 -0800
commitb4cc4d79bdf5cb925f73a41f253ddedf9c846c5b (patch)
treeb3c7d65925d2977d222db424a55d9e3c55fb4954 /doop.c
parentb86ef4ceaab5d9a6fca3fcfff7b5c2e5228d2bf0 (diff)
downloadperl-b4cc4d79bdf5cb925f73a41f253ddedf9c846c5b.tar.gz
Call FETCH once for $tied_ref =~ y/a/b/
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doop.c b/doop.c
index e31fae239e..231b3d86e0 100644
--- a/doop.c
+++ b/doop.c
@@ -642,7 +642,7 @@ Perl_do_trans(pTHX_ SV *sv)
return 0;
if (!(PL_op->op_private & OPpTRANS_IDENTICAL)) {
if (!SvPOKp(sv))
- (void)SvPV_force(sv, len);
+ (void)SvPV_force_nomg(sv, len);
(void)SvPOK_only_UTF8(sv);
}