Hi All,

I presume this is failing as the current directory is not
in the "lib" path:


$ perl6 -MPrintColors 'PrintBlue( "Blue\n" );'
Could not open PrintBlue( "Blue" ). Failed to stat file: no such
file or directory


This does work, but what a lot of extra work:

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



What are the rules for calling modules from the command line?


Many thanks,
-T

Reply via email to