Remove spurious case of warning "Use of %s without parentheses is ambiguous"
Rafael Garcia-Suarez [Sun, 20 Dec 2009 21:38:53 +0000 (22:38 +0100)]
Eric Brine pointed out that this warning doesn't apply to ".",
as in C<rand . 1>, that shouldn't warn since C<. 1> cannot be
mistaken for a floating point number.

toke.c

diff --git a/toke.c b/toke.c
index 19241c4..cec8ac2 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -5642,8 +5642,6 @@ Perl_yylex(pTHX)
                    pl_yylval.ival = 0;
                OPERATOR(DOTDOT);
            }
-           if (PL_expect != XOPERATOR)
-               check_uni();
            Aop(OP_CONCAT);
        }
        /* FALL THROUGH */