develooper Front page | perl.perl6.users | Postings from September 2018

Re: I need -M help

Thread Previous
Todd Chester
September 14, 2018 11:05
Re: I need -M help
Message ID:
 > On 14/09/2018 12:52, Todd Chester wrote:
 >> Hi All,
 >> With a one liner, how to I load a module that resides in the
 >> current directory?

On 09/14/2018 03:58 AM, Timo Paulssen wrote:
> The equivalent of "use lib 'blah'" on the commandline is "-I blah", just
> like "-M bloop" is the equivalent of "use 'bloop'" in code.
>    - Timo

Hi Timo,

Perfect!  Thank you!

$ perl6 -I./ -M./PrintColors -e 'PrintRed "Hi\n";'


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