Todd, can you please double-check if putting a comma in between the :import-tags in the "use" statement makes a difference? Like this: # perl6 -I./p6lib -e 'use ModuleTest :ModuleTest, :ModuleTst; ModuleTest; ModuleTst; # correct' # perl6 -I./p6lib -e 'use ModuleTest :ModuleTest :ModuleTst; ModuleTest; ModuleTst; # missing the comma' it should look like in the first line, the comma right between :ModuleTest and :ModuleTst Thanks - Timo On 04/11/2019 03:56, ToddAndMargo via perl6-users wrote: > 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