On 11/4/19 4:47 AM, Tom Browder wrote: > On Mon, Nov 4, 2019 at 06:25 ToddAndMargo via perl6-users > <perl6-users@perl.org <mailto:perl6-users@perl.org>> wrote: > ... > > Okay, now we're getting somewhere! That's just a warning, but it runs. I > am running an older version of Perl 6 (Raku) than you, so I don't get > the warning. My issue repeats in all of these versions under Fedroa 31: rakudo-pkg-Fedora29-2018.11-01.x86_64.rpm rakudo-pkg-Fedora29-2019.03.1-01.x86_64.rpm rakudo-pkg-Fedora30-2019.03.1-03.x86_64.rpm rakudo-pkg-Fedora30-2019.07.1-03.x86_64.rpm rakudo-pkg-Fedora31-2019.07.1-03.x86_64.rpm > > For the next step, try two things: > > 1. Run almost the same command but add an empty '()' after the last 'A'. > > 2. Run almost the same command with an ampersand in front of the 'A' and > no '()'. > > Results? > > -Tom [root@rn6 mytest]# perl6 -e 'use lib <lib>; use A :A; A()' WARNINGS for -e: Useless use of constant value A() in sink context (line 1) [root@rn6 mytest]# perl6 -e 'use lib <lib>; use A :A; &A' WARNINGS for -e: Useless use of &A in sink context (line 1)Thread Previous | Thread Next