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

I need the rules for running modules from the command line

Thread Next
From:
ToddAndMargo
Date:
August 14, 2018 10:03
Subject:
I need the rules for running modules from the command line
Message ID:
d45fb4dc-68c4-dc1a-abda-b4369d5bee34@zoho.com
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

Thread Next


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