Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
On 08/14/2018 03:48 AM, Timo Paulssen wrote: 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

Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
On 08/14/2018 03:20 AM, JJ Merelo wrote: Since I haven't done this for a long time, let me remind you the possibility of posting, if you will, your questions _also_ in StackOverflow. You'll (possibly) get more answers (or just different ones), and will help spread the word about Perl 6 (which

Re: I need the rules for running modules from the command line

2018-08-14 Thread Timo Paulssen
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

Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
On 08/14/2018 03:01 AM, ToddAndMargo wrote: 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

Re: I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
> On 14/08/18 12:01, ToddAndMargo wrote: >> 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 >> >> >>

Re: I need the rules for running modules from the command line

2018-08-14 Thread JJ Merelo
Since I haven't done this for a long time, let me remind you the possibility of posting, if you will, your questions _also_ in StackOverflow. You'll (possibly) get more answers (or just different ones), and will help spread the word about Perl 6 (which lately has gone back to the usual regime of

Re: I need the rules for running modules from the command line

2018-08-14 Thread Timo Paulssen
You can just put -I lib on your commandline, but what's more important is that you forgot to pass -e, so it was taking your code and interpreting it as a filename. It's very unlikely that you have a file called 'PrintBlue( "Blue\n" );' in the current directory, though. perl6 -Ilib -MPrintColors

I need the rules for running modules from the command line

2018-08-14 Thread ToddAndMargo
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