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

Re: I need -M help

Thread Previous
From:
Todd Chester
Date:
September 14, 2018 11:05
Subject:
Re: I need -M help
Message ID:
1826ef19-05d4-a576-7001-487b969d7e55@zoho.com
 > 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.
> 
> HTH
>    - Timo
> 

Hi Timo,

Perfect!  Thank you!

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

-T

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About