Re: RFE: contains documentation

2018-09-10 Thread ToddAndMargo
On 10/09/18 10:00, ToddAndMargo wrote: On 09/09/2018 06:21 PM, Peter Scott wrote: "Learning Perl 6" by brian d foy https://www.amazon.com/Learning-Perl-Keeping-Impossible-Within-ebook/dp/B07GT9KPP1/ref=sr_1_1_twi_kin_2 $30 U$D for the Kindle edition On 09/10/2018 12:07 AM, Richard Hai

Re: RFE: contains documentation

2018-09-10 Thread JJ Merelo
Far as I can tell, it's DRM free and those who have supported it in kickstarter, like me, got PDF, epub and .mobi. I don't think it's a big problem if you borrow it from one of us. Just drop me (or I guess any other) an email El lun., 10 sept. 2018 a las 9:29, ToddAndMargo () escribió: > > > > On

Re: case insensitive "contains"?

2018-09-10 Thread Laurent Rosenfeld via perl6-users
Hi Todd, you may use: say "Yes" if "2018 xJul 7" ~~ /:i jul/; or: say "Yes" if "2018 xJul 7" ~~ m:i/jul/; In the second case, the adverb will apply to the whole pattern. In the first case, it will start to apply from the point where the adverb is. In this specific example, those two code sampl

Re: case insensitive "contains"?

2018-09-10 Thread yary
> say "Yes" if "2018 xJul 7" ~~ m:i/j :i ul/; you mean say "Yes" if "2018 xJul 7" ~~ m/j :i ul/; m/.../ - not m:i at the start! -y On Mon, Sep 10, 2018 at 4:54 AM, Laurent Rosenfeld via perl6-users < perl6-us...@perl.org> wrote: > Hi Todd, > > you may use: > > say "Yes" if "2018 xJul 7" ~~ /:i

Re: case insensitive "contains"?

2018-09-10 Thread Ralph Mellor
Hi Todd, > What are the rules for what goes inside and what goes outside? > Also, do y have a link to what the various ":x" commands are that I can use? > See https://docs.perl6.org/language/regexes#Adverbs The first section explains the two types of "adverb". "regex adverbs" like `:i` can go e

Re: case insensitive "contains"?

2018-09-10 Thread Laurent Rosenfeld via perl6-users
Yes, copy and paste error on the last code snippet. say "Yes" if "2018 xJul 7" ~~ m/j :i ul/; Cheers, Laurent. Le lun. 10 sept. 2018 à 16:54, yary a écrit : > > say "Yes" if "2018 xJul 7" ~~ m:i/j :i ul/; > you mean > > say "Yes" if "2018 xJul 7" ~~ m/j :i ul/; > > m/.../ - not m:i at the sta

3 kinds of yadda

2018-09-10 Thread Parrot Raiser
There are 3 kinds of yadda, yadda operator: !!! dies with a message: Stub code executed in block at yad1 line 2 ... dies with an identical message ??? produces the message, but continues operating. The only difference I can find between !!! and ... is that !!! produces bizarre behaviour whe

Re: 3 kinds of yadda

2018-09-10 Thread Brandon Allbery
Bash is treating ! as the history substitution character, and either erroring out or substituting a previous command line. ^ has related behavior at the start of a line. ... is specially recognized by the compiler, for example treating a class stubbed with ... as a forward declaration. I don't kno

3 kinds of yadda

2018-09-10 Thread Parrot Raiser
There are 3 kinds of yadda, yadda operator: !!! dies with a message: Stub code executed in block at yad1 line 2 ... dies with an identical message ??? produces the message, but continues operating. The only difference I can find between !!! and ... is that !!! produces bizarre behaviour whe

Re: 3 kinds of yadda

2018-09-10 Thread Parrot Raiser
> Bash is treating ! as the history substitution character, and either erroring > out or substituting a previous command line. Thanks; that struck me between the time I hit send and got confirmation. :-)*

Re: 3 kinds of yadda

2018-09-10 Thread yary
Semantically !!! is "if control flow hits here, it's an error" ... is "The implementation is elsewhere, or this is not yet implemented" at least that's my impression -y On Mon, Sep 10, 2018 at 12:04 PM, Parrot Raiser <1parr...@gmail.com> wrote: > There are 3 kinds of yadda, yadda operator: >

Re: 3 kinds of yadda

2018-09-10 Thread Trey Harris
When executed: - ??? is warn.- ... is fail. - !!! is ‘die`. Otherwise, they’re identical (notably, when *not* executed, which is the usual case). You’d use ??? when you’re not implementing something yet but it needs to be callable (say, a debugging function). Given the difference in behavi

Re: case insensitive "contains"?

2018-09-10 Thread ToddAndMargo
Hi Laurent, Thank you! Another weapon in my tool box! Question: this confused me when I first look at it. I am use to the ":x" command being outside the first "/". For instance s:g/ What are the rules for what goes inside and what goes outside? Also, do y

Re: case insensitive "contains"?

2018-09-10 Thread ToddAndMargo
On 09/10/2018 08:36 AM, Laurent Rosenfeld via perl6-users wrote: Yes, copy and paste error on the last code snippet. say "Yes" if "2018 xJul 7" ~~ m/j :i ul/; Cheers, Laurent. Now that is down right cleaver! I can change my mind as I go. Thank you!

Re: case insensitive "contains"?

2018-09-10 Thread ToddAndMargo
On 09/10/2018 08:15 AM, Ralph Mellor wrote: Hi Todd, What are the rules for what goes inside and what goes outside? Also, do y have a link to what the various ":x" commands are that I can use? See https://docs.perl6.org/language/regexes#Adverbs The first section explains the two