summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorLarry Wall <larry@wall.org>1998-06-22 01:55:09 -0700
committerGurusamy Sarathy <gsar@cpan.org>1998-07-04 00:33:37 +0000
commit85b81015bdcfa6e7a9ccddddb0d3face7465f666 (patch)
treec8168df0a5b1e39f7384350a44cbb4527c222a25 /toke.c
parenteacd03c1d97275b2758afcdbb834e028f5a3b9d8 (diff)
downloadperl-85b81015bdcfa6e7a9ccddddb0d3face7465f666.tar.gz
deprecate use of reserved word "our" (Larry's idea)
Message-Id: <199806221555.IAA07212@wall.org> Subject: Re: our p4raw-id: //depot/perl@1276
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index c734fc8813..5d0f8f3e17 100644
--- a/toke.c
+++ b/toke.c
@@ -4399,6 +4399,8 @@ keyword(register char *d, I32 len)
case 3:
if (strEQ(d,"ord")) return -KEY_ord;
if (strEQ(d,"oct")) return -KEY_oct;
+ if (strEQ(d,"our")) { deprecate("reserved keyword \"our\"");
+ return 0;}
break;
case 4:
if (strEQ(d,"open")) return -KEY_open;