> On Jun 3, 2018, at 7:41 PM, Xin Cheng wrote:
>
> I am trying to make a program to do grep with perl6 regular expression, and I
> would like to colorize the matched part to the terminal.
—snip--
> if $temp ~~ s/ (<$pattern>) /\\x1b\[31m$0\\x1b\[0m/ {say $temp}
—snip—
Change this:
Hi!
On Sun, Jun 03, 2018 at 03:05:33PM -0700, ToddAndMargo wrote:
> On 06/03/2018 02:54 PM, Brad Gilbert wrote:
> > But in this case it is even better to use -I and -M
> >
> > p6 -I. -MRunNoShell -e '( my $a, my $b ) =
> > RunNoShell::RunNoShell("ls *.pm6"); say $a;'
>
> $ perl6
Thanks Bruce,
This is great, and It works as I expected.
I appreciate all the helps.
Regards
Xin
> On Jun 4, 2018, at 9:04 AM, Bruce Gray wrote:
>
>
>> On Jun 3, 2018, at 7:41 PM, Xin Cheng wrote:
>>
>> I am trying to make a program to do grep with perl6 regular expression, and
>> I woul
On 06/03/2018 03:15 PM, Thomas Klausner wrote:
Hi!
On Sun, Jun 03, 2018 at 03:05:33PM -0700, ToddAndMargo wrote:
On 06/03/2018 02:54 PM, Brad Gilbert wrote:
But in this case it is even better to use -I and -M
p6 -I. -MRunNoShell -e '( my $a, my $b ) =
RunNoShell::RunNoShell