Re: I need one liner module import help

2019-06-13 Thread ToddAndMargo via perl6-users
On 6/13/19 1:49 AM, JJ Merelo wrote: Hi, El jue., 13 jun. 2019 a las 9:39, ToddAndMargo via perl6-users (mailto:perl6-us...@perl.org>>) escribió: On 6/11/19 3:39 PM, ToddAndMargo via perl6-users wrote: > This works: > > perl6 -e 'use lib "/home/linuxutil/p6lib"; use PrintCo

Re: I need one liner module import help

2019-06-13 Thread JJ Merelo
Hi, El jue., 13 jun. 2019 a las 9:39, ToddAndMargo via perl6-users (< perl6-us...@perl.org>) escribió: > On 6/11/19 3:39 PM, ToddAndMargo via perl6-users wrote: > > This works: > > > > perl6 -e 'use lib "/home/linuxutil/p6lib"; use PrintColors :PrintBlue; > > PrintBlue( "Blue\n" );' > > > > Blue

Re: I need one liner module import help

2019-06-13 Thread ToddAndMargo via perl6-users
On 6/11/19 3:39 PM, ToddAndMargo via perl6-users wrote: This works: perl6 -e 'use lib "/home/linuxutil/p6lib"; use PrintColors :PrintBlue; PrintBlue( "Blue\n" );' Blue Just posted: RFE: -M switch for selective imports https://github.com/perl6/doc/issues/2852

Re: I need one liner module import help

2019-06-12 Thread ToddAndMargo via perl6-users
On 6/12/19 2:51 PM, Tom Browder wrote: I think you will have to file a Rakudo issue. Do you have a link to them?

Re: I need one liner module import help

2019-06-12 Thread Tom Browder
On Wed, Jun 12, 2019 at 16:12 ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi Bruce, > > This has to do with the way I am importing subs from modules. > > When importing subs, I like to declare which subs I > am importing. Otherwise my code is a nightmare to maintain. > "Where th

Re: I need one liner module import help

2019-06-12 Thread ToddAndMargo via perl6-users
Hi Bruce, This has to do with the way I am importing subs from modules. When importing subs, I like to declare which subs I am importing. Otherwise my code is a nightmare to maintain. "Where the heck did that subs comes from? Is its a system subs or " For instance, in Perl 5: use Te

Re: I need one liner module import help

2019-06-12 Thread Bruce Gray
> On Jun 12, 2019, at 1:22 AM, ToddAndMargo via perl6-users > wrote: —snip-- > $ perl6 -I /home/linuxutil/p6lib -M PrintColors::PrintBlue -e 'PrintBlue( > "Blue\n" );' > ===SORRY!=== > Could not find PrintColors::PrintBlue at line 1 in: I see that I introduced a point of confusion. In Perl

Re: I need one liner module import help

2019-06-11 Thread ToddAndMargo via perl6-users
On 6/11/19 9:11 PM, Bruce Gray wrote: On Jun 11, 2019, at 5:39 PM, ToddAndMargo via perl6-users wrote: Hi All, I need one liner help importing a module sub This works: perl6 -e 'use lib "/home/linuxutil/p6lib"; use PrintColors :PrintBlue; PrintBlue( "Blue\n" );' Blue This does not:

Re: I need one liner module import help

2019-06-11 Thread Bruce Gray
> On Jun 11, 2019, at 5:39 PM, ToddAndMargo via perl6-users > wrote: > > Hi All, > > I need one liner help importing a module sub > > This works: > > perl6 -e 'use lib "/home/linuxutil/p6lib"; use PrintColors :PrintBlue; > PrintBlue( "Blue\n" );' > > Blue > > > > This does not: > > p