summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1997-11-11 02:11:23 +0000
committerGurusamy Sarathy <gsar@cpan.org>1997-11-11 02:11:23 +0000
commit1d64a758d60d7ded97c59c753fea85d3365ca0df (patch)
treec2cd4c1f989b85684ccd2fbeed4f0241b996dbfa
parent6e7b23362bbae8d13123bf406d494975427fd06f (diff)
downloadperl-1d64a758d60d7ded97c59c753fea85d3365ca0df.tar.gz
Slightly more refined lock() keyword recognition (using %INC).
p4raw-id: //depot/win32/perl@226
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 07a1656372..7a37b7d4cd 100644
--- a/toke.c
+++ b/toke.c
@@ -2607,7 +2607,7 @@ yylex()
}
else if (gv && !gvp
&& -tmp==KEY_lock /* XXX generalizable kludge */
- && !gv_fetchpv("Thread::join",FALSE,SVt_PVCV))
+ && !hv_fetch(GvHVn(incgv), "Thread.pm", 9, FALSE))
{
tmp = 0; /* any sub overrides "weak" keyword */
}