# New Ticket Created by  Aleks-Daniel Jakimenko-Aleksejev 
# Please include the string:  [perl #131382]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131382 >


Code:
for(^700){say 2}

Result:
===SORRY!=== Error while compiling -e
Undeclared routine:
    for used at line 1



This just happened on the channel: 
https://irclog.perlgeek.de/perl6/2017-05-27#i_14645895


Note that we already have a good error message:

Code:
for(^700) {say 2}

Result:
===SORRY!===
Word 'for' interpreted as 'for()' function call; please use whitespace instead 
of parens
at -e:1
------> for⏏(^700) {say 2}
Unexpected block in infix position (two terms in a row)
at -e:1
------> for(^700)⏏ {say 2}


However, it is not printed if you omit space everywhere.

Reply via email to