summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2001-09-04 00:55:41 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2001-09-04 12:48:14 +0000
commit9bbb1adaf4f03189507dea28ff5773b762523248 (patch)
tree3331fcc107013d70f6a46bd16e6d07029deb0f7e /toke.c
parentfe05d1a7f63cf11414017abdc1edd6615d080183 (diff)
downloadperl-9bbb1adaf4f03189507dea28ff5773b762523248.tar.gz
'main' *is* a reserved word
Message-ID: <20010903225541.A24097@rafael> p4raw-id: //depot/perl@11861
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index b78e19d94b..1ebd17b62e 100644
--- a/toke.c
+++ b/toke.c
@@ -3996,7 +3996,7 @@ Perl_yylex(pTHX)
if (ckWARN(WARN_RESERVED)) {
if (lastchar != '-') {
for (d = PL_tokenbuf; *d && isLOWER(*d); d++) ;
- if (!*d)
+ if (!*d && strNE(PL_tokenbuf,"main"))
Perl_warner(aTHX_ WARN_RESERVED, PL_warn_reserved,
PL_tokenbuf);
}