summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorChip Salzenberg <chip@perl.com>1997-03-07 03:46:37 +1200
committerChip Salzenberg <chip@atlantic.net>1997-03-07 04:01:12 +1200
commitd83e6520878f26ddb2592ab5b8b67eb482e51ea6 (patch)
treee05d3759566da0d7e57fc52c34bd01393908695a /pp.c
parentf80924e7bd8c4d7568804ea1ad8e9f6ad1b28f8f (diff)
downloadperl-d83e6520878f26ddb2592ab5b8b67eb482e51ea6.tar.gz
Warn on %{+undef} and @{+undef}
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 59a6ea7f5f..863478d6c9 100644
--- a/pp.c
+++ b/pp.c
@@ -139,6 +139,8 @@ PP(pp_rv2gv)
if (op->op_flags & OPf_REF ||
op->op_private & HINT_STRICT_REFS)
DIE(no_usym, "a symbol");
+ if (dowarn)
+ warn(warn_uninit);
RETSETUNDEF;
}
sym = SvPV(sv, na);
@@ -181,6 +183,8 @@ PP(pp_rv2sv)
if (op->op_flags & OPf_REF ||
op->op_private & HINT_STRICT_REFS)
DIE(no_usym, "a SCALAR");
+ if (dowarn)
+ warn(warn_uninit);
RETSETUNDEF;
}
sym = SvPV(sv, na);