This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9111c9c
)
[perl #28986] perl -e "open m" crashes Perl
author
Dave Mitchell
<davem@fdisolutions.com>
Mon, 3 May 2004 20:26:22 +0000
(20:26 +0000)
committer
Dave Mitchell
<davem@fdisolutions.com>
Mon, 3 May 2004 20:26:22 +0000
(20:26 +0000)
p4raw-id: //depot/perl@22776
toke.c
patch
|
blob
|
blame
|
history
diff --git
a/toke.c
b/toke.c
index
e8c1073
..
6899cb4
100644
(file)
--- a/
toke.c
+++ b/
toke.c
@@
-4681,8
+4681,8
@@
Perl_yylex(pTHX)
if (isIDFIRST_lazy_if(s,UTF)) {
char *t;
for (d = s; isALNUM_lazy_if(d,UTF); d++) ;
-
t = skipspace(d)
;
- if (strchr("|&*+-=!?:.", *t) && ckWARN_d(WARN_PRECEDENCE)
+
for (t=d; *t && isSPACE(*t); t++)
;
+ if (
*t &&
strchr("|&*+-=!?:.", *t) && ckWARN_d(WARN_PRECEDENCE)
/* [perl #16184] */
&& !(t[0] == '=' && t[1] == '>')
) {