develooper Front page | perl.perl6.users | Postings from November 2019

Re: FC31 can't find my module subs

Thread Previous | Thread Next
From:
ToddAndMargo via perl6-users
Date:
November 4, 2019 12:52
Subject:
Re: FC31 can't find my module subs
Message ID:
34c4bde1-b49b-4659-2d5f-9aa9967faa4a@zoho.com
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About