[perl #28986] perl -e "open m" crashes Perl
Dave Mitchell [Mon, 3 May 2004 20:26:22 +0000 (20:26 +0000)]
p4raw-id: //depot/perl@22776

toke.c

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] == '>')
                ) {