Re: help with map and regexp

2017-09-20 Thread Luca Ferrari
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 between using "is copy"

bash and pm6 question

2017-09-20 Thread ToddAndMargo
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 ~~

Re: Any "note" without the "say"?

2017-09-20 Thread ToddAndMargo
On 09/18/2017 10:23 AM, Andy Bach wrote: Er, I was referring more to the P5 behaviour of warn() - w/o a newline, its output, to stderr, included more info: $ perl -e 'warn("hi mom")' > /dev/null hi mom at -e line 1. $ perl -e 'warn("hi mom\n")' > /dev/null hi mom "note" appears to append a

Re: can't adverb and infix

2017-09-20 Thread Elizabeth Mattijsen
> On 19 Sep 2017, at 13:04, Brandon Allbery wrote: > > On Tue, Sep 19, 2017 at 3:44 AM, Luca Ferrari wrote: > this will sound trivial, but the following piece of code that in my > mind should work does not: > > $mode = 'csv' if ( ! $mode.defined || %available_modes{ $mode }:!exists ); > > and