diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-10-28 18:52:10 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-10-28 18:52:10 +0000 |
commit | 59a6d928548d6aee50ca1cdd520abe66c9baa354 (patch) | |
tree | ac018440fd312753d294090a1fd27cefb8bc5bc7 /toke.c | |
parent | 0dd2cdef082b8bc24e64c02fcb29904168be24b5 (diff) | |
download | perl-59a6d928548d6aee50ca1cdd520abe66c9baa354.tar.gz |
smarter C<$SIG{FOO} = BAREWORD;> warning
p4raw-id: //depot/perl@2111
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |