From: Rafael Garcia-Suarez Date: Mon, 3 Sep 2001 22:55:41 +0000 (+0200) Subject: 'main' *is* a reserved word X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9bbb1adaf4f03189507dea28ff5773b762523248;p=p5sagit%2Fp5-mst-13.2.git 'main' *is* a reserved word Message-ID: <20010903225541.A24097@rafael> p4raw-id: //depot/perl@11861 --- diff --git a/toke.c b/toke.c index b78e19d..1ebd17b 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); }