summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 98e4b7d618..e5e3ddf074 100644
--- a/toke.c
+++ b/toke.c
@@ -6704,7 +6704,7 @@ Perl_yylex(pTHX)
}
/* Resolve to GV now if this is a placeholder. */
- if ((gvop = cUNOPx(rv2cv_op)->op_first)
+ if (!off && (gvop = cUNOPx(rv2cv_op)->op_first)
&& gvop->op_type == OP_GV) {
GV *gv2 = cGVOPx_gv(gvop);
if (gv2 && !isGV(gv2)) {