summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-10-28 18:52:10 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-10-28 18:52:10 +0000
commit59a6d928548d6aee50ca1cdd520abe66c9baa354 (patch)
treeac018440fd312753d294090a1fd27cefb8bc5bc7
parent0dd2cdef082b8bc24e64c02fcb29904168be24b5 (diff)
downloadperl-59a6d928548d6aee50ca1cdd520abe66c9baa354.tar.gz
smarter C<$SIG{FOO} = BAREWORD;> warning
p4raw-id: //depot/perl@2111
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 1827a3989e..f3e8ce8c3c 100644
--- a/toke.c
+++ b/toke.c
@@ -2728,7 +2728,8 @@ int yylex
for (t++; isSPACE(*t); t++) ;
if (isIDFIRST_lazy(t)) {
t = scan_word(t, tmpbuf, sizeof tmpbuf, TRUE, &len);
- if (*t != '(' && perl_get_cv(tmpbuf, FALSE))
+ for (; isSPACE(*t); t++) ;
+ if (*t == ';' && perl_get_cv(tmpbuf, FALSE))
warner(WARN_SYNTAX,
"You need to quote \"%s\"", tmpbuf);
}