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 02:56
Subject:
Re: FC31 can't find my module subs
Message ID:
dda984c6-4f76-eacb-e1d0-ee48a4221fc4@zoho.com
On 11/3/19 3:15 PM, ToddAndMargo via perl6-users wrote:
> Hi All,
> 
> Help!
> 
> I just upgraded Fedora from 30 to 31.
> 
> I upgraded to rakudo-pkg-Fedora31-2019.07.1-03.x86_64.rpm
> from https://github.com/nxadm/rakudo-pkg/releases
> 
> Now P6 can not find my subs inside my modules:
> 
> # perl6 -I/home/linuxutil/p6lib -MPrintColors -e 'PrintGreen( "Hi\n" );'
>      ===SORRY!=== Error while compiling -e
>      Undeclared name:
>          PrintGreen used at line 1
> 
> [editorial comment] AAAAHHHHHHH!!!!! [/editorial comment]
> 
> The stock "rakudo" and "rakudo-zef" that resides in the
> Fedora repo's has the same issue.
> 
> Many thanks,
> -T


I am hamstrung on so may fronts if I don't get this working!

I gets uglier:

# cat p6lib/ModuleTest.pm6
sub ModuleTest() is export( :ModuleTest ) { say "Hi"; }
sub ModuleTst()  is export( :ModuleTst )  { say "Bye"; }


# perl6 -I./p6lib -e 'use ModuleTest :ModuleTest :ModuleTst; 
ModuleTest; ModuleTst;'

===SORRY!=== Error while compiling -e
Undeclared name:
     ModuleTst used at line 1


And way uglier.  I removed the ":"
# cat p6lib/ModuleTest.pm6

# sub ModuleTest() is export( :ModuleTest ) { say  "Hi"; }
# sub ModuleTst()  is export( :ModuleTst )  { say "Bye"; }
sub ModuleTest() is export( ModuleTest ) { say  "Hi"; }
sub ModuleTst()  is export( ModuleTst )  { say "Bye"; }


# perl6 -I/home/linuxutil/p6lib -e 'use ModuleTest;  ModuleTest; ModuleTst;'
===SORRY!=== Error while compiling /home/linuxutil/p6lib/ModuleTest.pm6 
(ModuleTest)
Undeclared name:
     ModuleTest used at line 4

And, And, depending on the position of the moon overhead,
sometimes it works.    AAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHH!!!!!

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