> On 22 Sep 2017, at 00:32, Bennett Todd wrote:
>
> With perl5, that could have been something like. "perl -Mmy -e ...", but I
> don't have access to a perl6 at this instant to compare. There should be a
> flag you can use to include a module into the.running
With perl5, that could have been something like. "perl -Mmy -e ...", but I
don't have access to a perl6 at this instant to compare. There should be a flag
you can use to include a module into the.running environment before evaluating
the
"-e" code.
Using "use" within the "-e" string should
On 09/21/2017 01:19 AM, Shlomi Fish wrote:
Hi Todd,
On Wed, 20 Sep 2017 23:22:41 -0700
ToddAndMargo wrote:
Hi All,
Can I call a pm6 directly from bash or do I
need to call a pl6 that calls the pm6?
why not use "perl6 -e"?
Regards,
Shlomi
perl6 -e'use
On Thu, Sep 21, 2017 at 2:37 AM, Luca Ferrari wrote:
> Out of cursiosity: what is the diffence between using "is copy" and "<->"?
> Seems to me the map example can work with both.
>
<-> is the same as "is rw" and requires that the thing being bound be a
mutable container,
Hi Todd,
On Wed, 20 Sep 2017 23:22:41 -0700
ToddAndMargo wrote:
> Hi All,
>
> Can I call a pm6 directly from bash or do I
> need to call a pl6 that calls the pm6?
>
why not use "perl6 -e"?
Regards,
Shlomi
>
> Many thanks,
> -T
>
--
You can also use a whatever star with the subst method to avoid the block
entirely, and just chain method calls:
my @fields = $line.split( ',' ).map: *.subst(/\'/, "", :g).subst(/^\"|\"$/,
"", :g);
On Wed, Sep 20, 2017 at 11:37 PM, Luca Ferrari
wrote:
> On Tue, Sep 19,
On Tue, Sep 19, 2017 at 2:43 PM, Timo Paulssen wrote:
> perl6 -e '.perl.say for "hello, how, are, you".split(",").map: -> $_
> is copy { s:g/a//; s:g/^ \s|\s $/O/; $_ }'
> "hello"
> "Ohow"
> "Ore"
> "Oyou"
Thanks.
Out of cursiosity: what is the diffence
Hi All,
Can I call a pm6 directly from bash or do I
need to call a pl6 that calls the pm6?
Many thanks,
-T
--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~