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

I need one liner module import help

Thread Next
From:
ToddAndMargo via perl6-users
Date:
June 11, 2019 22:40
Subject:
I need one liner module import help
Message ID:
dda697ca-c836-4acf-c648-3d6124ddbce8@zoho.com
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" );'

Blue



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,
-T

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