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


The docs state the following regarding the feed operators:

> In the case of routines/methods that take a single argument or where the 
> first argument is a block, it is often required that you call with 
> parentheses (though this is not required for the very last routine/method).

https://docs.perl6.org/language/operators#index-entry-feed

In the example, sort(), flat(), printf(), sprintf() can omit ():

"my string" ==> sort
"my string" ==> flat
"my string" ==> printf
"my string" ==> sprintf

but fails with others (this isn't an exhaustive list):

"my string" ==> say
===SORRY!=== Error while compiling:
Unsupported use of bare "say"; in Perl 6 please use .say if you meant $_, or 
use an explicit invocant or argument, or use &say to refer to the function as a 
noun
------> "my string" ==> say⏏;

"my string" ==> print
===SORRY!=== Error while compiling:
Unsupported use of bare "print"; in Perl 6 please use .print if you meant $_, 
or use an explicit invocant or argument, or use &print to refer to the function 
as a noun
------> "my string" ==> print⏏;

"my string" ==> reverse
===SORRY!=== Error while compiling:
Unsupported use of bare "reverse"; in Perl 6 please use .reverse if you meant 
$_, or use an explicit invocant or argument, or use &reverse to refer to the 
function as a noun
------> "my string" ==> reverse⏏;

This bug is similar to https://rt.perl.org/Ticket/Display.html?id=112396

Tested on 2016.12, v2016.12.113.gd.1.da.1.ba

Reply via email to