Re: replace s///r ?

2019-06-11 Thread Brad Gilbert
The /r modifier on s/// in Perl5 is S/// in Perl6. Though you have to put it into a block lambda, otherwise it applies to $_ before it gets a chance to be passed to map. $*ARGFILES . lines . grep( / ^ + $ / ) . map( {S/^/ * /} ) . map(&other-things-to-do) . map(&sa

Re: replace s///r ?

2019-06-11 Thread Marc Chantreux
hello, On Tue, Jun 11, 2019 at 08:26:11AM -0500, Brad Gilbert wrote: > The /r modifier on s/// in Perl5 is S/// in Perl6. oops .. it was the section just after s/// :( thanks for pointing out. > Though you have to put it into a block lambda, otherwise it applies to > $_ before it gets a chance t

I need one liner module import help

2019-06-11 Thread ToddAndMargo via perl6-users
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: perl6 -I /home/linuxutil/p6lib -M "PrintColors :PrintBlue" -e 'PrintBlue( "Blue\n" );' Could not find Pri

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

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: