diff options
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -272,7 +272,8 @@ PP(pp_rv2sv) dVAR; dSP; dTOPss; GV *gv = NULL; - SvGETMAGIC(sv); + if (!(PL_op->op_private & OPpDEREFed)) + SvGETMAGIC(sv); if (SvROK(sv)) { tryAMAGICunDEREF(to_sv); |