summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-20 11:00:31 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-20 11:00:31 +0000
commit8ae1fe26cb95d1274fd14fd03b3c3d0928a2403f (patch)
treefcb52651b7d9991dc1b04d83713a4c24c68130f0 /gv.c
parentcdd3ba141d0471cdda288698b2e3ab4be509f775 (diff)
downloadperl-8ae1fe26cb95d1274fd14fd03b3c3d0928a2403f.tar.gz
Remove the deprecated $# variable
p4raw-id: //depot/perl@24908
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gv.c b/gv.c
index 68dbd720c1..31a1c82262 100644
--- a/gv.c
+++ b/gv.c
@@ -1031,15 +1031,11 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags,
goto magicalize;
}
case '*':
- if (sv_type == SVt_PV && ckWARN2(WARN_DEPRECATED, WARN_SYNTAX))
- Perl_warner(aTHX_ packWARN2(WARN_DEPRECATED, WARN_SYNTAX),
- "$* is no longer supported");
- break;
case '#':
if (sv_type == SVt_PV && ckWARN2(WARN_DEPRECATED, WARN_SYNTAX))
Perl_warner(aTHX_ packWARN2(WARN_DEPRECATED, WARN_SYNTAX),
- "Use of $# is deprecated");
- goto magicalize;
+ "$%c is no longer supported", *name);
+ break;
case '|':
sv_setiv(GvSV(gv), (IV)(IoFLAGS(GvIOp(PL_defoutgv)) & IOf_FLUSH) != 0);
goto magicalize;