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

I need one liner module import help

Thread Next
ToddAndMargo via perl6-users
June 11, 2019 22:40
I need one liner module import help
Message ID:
Hi All,

I need one liner help importing a module sub

This works:

perl6 -e 'use lib "/home/linuxutil/p6lib"; use PrintColors :PrintBlue; 
PrintBlue( "Blue\n" );'


This does not:

perl6 -I /home/linuxutil/p6lib -M "PrintColors :PrintBlue" -e 
'PrintBlue( "Blue\n" );'

Could not find PrintColors :PrintBlue at line 1 in:

What did I do wrong, this time?

Many thanks,

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About