summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-06-13 19:17:50 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-06-13 19:17:50 +0000
commitf02c194e1a40f11d020685cd18b41e5261091b12 (patch)
tree37863ea19d4769893b861e11cb30b0215621246d /gv.c
parentcff1be36840a17022b50a6f295ed97efe19b975e (diff)
downloadperl-f02c194e1a40f11d020685cd18b41e5261091b12.tar.gz
Remove the deprecated $* variable.
Incidentally, this fixes bug #22354, about unwanted action-at-distance of the /m regexp modifier. Add a new warning to advertise this fact. p4raw-id: //depot/perl@19769
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gv.c b/gv.c
index a003e8e885..b944d44f05 100644
--- a/gv.c
+++ b/gv.c
@@ -925,10 +925,15 @@ Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, I32 sv_type)
SvREADONLY_on(av);
}
goto magicalize;
- case '#':
case '*':
- if (ckWARN2(WARN_DEPRECATED, WARN_SYNTAX) && len == 1 && sv_type == SVt_PV)
- Perl_warner(aTHX_ packWARN2(WARN_DEPRECATED, WARN_SYNTAX), "Use of $%s is deprecated", name);
+ if (len == 1 && sv_type == SVt_PV && ckWARN2(WARN_DEPRECATED, WARN_SYNTAX))
+ Perl_warner(aTHX_ packWARN2(WARN_DEPRECATED, WARN_SYNTAX),
+ "$* has been removed");
+ break;
+ case '#':
+ if (len == 1 && sv_type == SVt_PV && ckWARN2(WARN_DEPRECATED, WARN_SYNTAX))
+ Perl_warner(aTHX_ packWARN2(WARN_DEPRECATED, WARN_SYNTAX),
+ "Use of $# is deprecated");
/* FALL THROUGH */
case '[':
case '^':
@@ -1837,7 +1842,6 @@ Perl_is_gv_magical(pTHX_ char *name, STRLEN len, U32 flags)
case '!':
case '-':
case '#':
- case '*':
case '[':
case '^':
case '~':