Please be aware that passing a folder with many files in it as the -I
path will cause a tremendous slowdown when loading modules, since it
goes through the whole file hierarchy starting at that path. If
/home/linuxutil is actually a typical home folder with dotfiles and
documents and what have you, that can take a *long* while.


On 14/08/18 12:41, ToddAndMargo wrote:
> Follow up, with Timo's help.  Note keeper note:
>
>
>
> Perl6: running modules from the command line:
>
>
> -Mxxxx   xxxx = module name without the pm6 and no space
>
> -Ixxxx   xxxx = local path to read and no space;
>                 "./" is accepted for the current directory
>
> Don't forget the -e
>
>
> $ perl6 -I./ -MPrintColors -e 'PrintBlue( "Blue\n" );'
> Blue
>
> $ perl6 -I/home/linuxutil -MPrintColors -e 'PrintBlue( "Blue\n" );'
> Blue
>
> $ perl6 -e 'use lib "/home/linuxutil"; use PrintColors; PrintBlue(
> "Blue\n" );'
> Blue

Reply via email to