Re: RFE: contains documentation

2018-09-07 Thread Vadim Belman
You're pretty much mistaken here. No documentation can replace a good book. No documentation is capable of providing enough in-depth understanding of The Concept. I am a sleepy kind of person too. But I managed to get through Perl6 Deep Dive by Andrew Shitov in the only possible way: having

Re: RFE: contains documentation

2018-09-07 Thread ToddAndMargo
On 09/07/2018 06:25 PM, Curt Tilmes wrote: The documentation isn't a tutorial, but is still improving every day. For the function it is documenting, it had better be a tutorial. Otherwise, why would anyone other than a developer seek its input? Seriously. If you can't figure it out from the

RE: RFE: contains documentation

2018-09-07 Thread Mark Devine
I second that nod. Learning Perl 6 is fixing up all kinds of my errant mental models. Just what I needed. Mark From: Curt Tilmes Sent: Friday, September 7, 2018 21:25 To: Todd Chester Cc: perl6-users Subject: Re: RFE: contains documentation On Fri, Sep 7, 2018 at 8:58 PM ToddAndMargo

Re: RFE: contains documentation

2018-09-07 Thread Curt Tilmes
On Fri, Sep 7, 2018 at 8:58 PM ToddAndMargo wrote: > My big gripe with the documentation is that it is written as > a refresher for those that already know what they are doing. > This is why I am such a good case for spotting things that > do not resonate with beginners. > > I am clueless, until

Re: "contains" beginning, end?

2018-09-07 Thread ToddAndMargo
On 08/09/18 02:00, ToddAndMargo wrote: Hi All, Does "contains" have options for "at the start of" and "at the end" of matches? Many thanks, -T On 09/07/2018 05:01 PM, Timo Paulssen wrote: > It does not, but there are methods .starts-with and .ends-with that > probably do what you need. > >

Re: date conversions?

2018-09-07 Thread ToddAndMargo
On 09/07/2018 05:10 PM, Vadim Belman wrote: Anyway, often googling with 'perl6 ' might provide one with even more information than expected!  The only pain-in-the-*** I find with Perl 6 is that Googling it gives you hordes of Perl 5 hits. I am just going to do this: my %Month = (

Re: RFE: contains documentation

2018-09-07 Thread ToddAndMargo
On 09/07/2018 05:08 PM, Curt Tilmes wrote: On Fri, Sep 7, 2018 at 7:59 PM ToddAndMargo > wrote: >  From the page you linked to "Coerces the invocant and first argument to > Str , and searches for |$needle| in

Re: date conversions?

2018-09-07 Thread Vadim Belman
I was once looking for strftime and stumbled over https://gist.github.com/salortiz/051c7a81400522e30a7cf12377c02f70 and https://github.com/supernovus/perl6-datetime-format My choice was in favor of DateTime::Format though. Anyway, often googling with 'perl6 ' might provide one with even more

Re: "contains" beginning, end?

2018-09-07 Thread Timo Paulssen
It does not, but there are methods .starts-with and .ends-with that probably do what you need. HTH   - Timo On 08/09/18 02:00, ToddAndMargo wrote: > Hi All, > > Does "contains" have options for "at the start of" and > "at the end" of matches? > > > Many thanks, > -T

"contains" beginning, end?

2018-09-07 Thread ToddAndMargo
Hi All, Does "contains" have options for "at the start of" and "at the end" of matches? Many thanks, -T

Re: case insensitive "contains"?

2018-09-07 Thread ToddAndMargo
On 09/07/2018 03:49 PM, ToddAndMargo wrote: Hi All, How do I use "contains" without regard to case? $ p6 'if "2018 Jul 7".contains( "jul", 3 ) {say "Yes";}' Many thanks, -T The chat line helped me figure it out: $ p6 'if "2018 Jul 7".fc.contains( "jul".fc ) {say "Yes";}' Yes $ p6 'if

case insensitive "contains"?

2018-09-07 Thread ToddAndMargo
Hi All, How do I use "contains" without regard to case? $ p6 'if "2018 Jul 7".contains( "jul", 3 ) {say "Yes";}' Many thanks, -T

RFE: contains documentation

2018-09-07 Thread ToddAndMargo
Dear Perl6, Would you please consider updating https://docs.perl6.org/routine/contains to explain what the second parameters means? say "Hello, World".contains(',', 10); # OUTPUT: «False␤» and include how to do case insensitive matches. Many thanks, -T

date conversions?

2018-09-07 Thread ToddAndMargo
Hi All, I want to convert "2018 Jun 7" into 2018.06.07". I know I can do this myself, but is there a utility already written for this? https://docs.perl6.org/routine/Date does not seem to enlighten me. Many thanks, -T -- ~~ Computers are like air