Re: odd and even

2018-05-04 Thread ToddAndMargo
On 04/30/2018 02:34 AM, Thomas Klausner wrote: and presumably also some online tutorial. Trouble is when you search for Perl 5 stuff, you get STOMPED with Perl 5 hits. I agree with your on the reference remark. I they were to use more practical examples, it would help.

Re: odd and even

2018-05-04 Thread Thomas Klausner
Hi! On Mon, Apr 30, 2018 at 02:23:44AM -0700, ToddAndMargo wrote: > So, the main issue I have with the docs is that they > "seem" to be written as a refresher for an advanced use > and not as a trainer for a newbie. I guess that's because the docs are meant as a reference, and not as a tutoria

Re: odd and even

2018-05-02 Thread yary
It's all hyperbole, circular reasoning with bits hidden behind ellipsis... parboiled lexiconical sections. -y On Tue, May 1, 2018 at 10:04 PM, Brandon Allbery wrote: > On Tue, May 1, 2018 at 9:17 PM, Larry Wall wrote: >> >> On Tue, May 01, 2018 at 01:43:44AM -0700, ToddAndMargo wrote: >> : The

Re: odd and even

2018-05-01 Thread Brandon Allbery
On Tue, May 1, 2018 at 9:17 PM, Larry Wall wrote: > On Tue, May 01, 2018 at 01:43:44AM -0700, ToddAndMargo wrote: > : The worst thing I had problems with in Perl was folks telling it > : was "Lexiconical". What? I wish they would have also said "which > : means Perl figures out your variables t

Re: odd and even

2018-05-01 Thread ToddAndMargo
On 05/01/2018 06:17 PM, Larry Wall wrote: On Tue, May 01, 2018 at 01:43:44AM -0700, ToddAndMargo wrote: : The worst thing I had problems with in Perl was folks telling it : was "Lexiconical". What? I wish they would have also said "which : means Perl figures out your variables type on the fly,

Re: odd and even

2018-05-01 Thread Brent Laabs
Yeah, that lexiconic section sounded a bit hyperbolic. On Tue, May 1, 2018 at 6:17 PM, Larry Wall wrote: > On Tue, May 01, 2018 at 01:43:44AM -0700, ToddAndMargo wrote: > : The worst thing I had problems with in Perl was folks telling it > : was "Lexiconical". What? I wish they would have also

Re: odd and even

2018-05-01 Thread Larry Wall
On Tue, May 01, 2018 at 01:43:44AM -0700, ToddAndMargo wrote: : The worst thing I had problems with in Perl was folks telling it : was "Lexiconical". What? I wish they would have also said "which : means Perl figures out your variables type on the fly, so you don't : have to type cast everything"

Re: odd and even

2018-05-01 Thread Parrot Raiser
The result of a modulus-2 is always going to be 0 or 1, so if you can put the "even" and "odd" results in a 2 -element array, using it as a subscript would be a way to achieve the outcome. On 5/1/18, ToddAndMargo wrote: > On 04/30/2018 06:47 AM, Elizabeth Mattijsen wrote: > >> Perhaps this is a s

Re: odd and even

2018-05-01 Thread ToddAndMargo
On 04/30/2018 06:47 AM, Elizabeth Mattijsen wrote: Perhaps this is a simpler solution: for split( "\n", $ClipStr ) -> $evenline, $oddline? { say “Purple $evenline”; say “Green $_” with $oddline; } Two lines at a time. Fascinating! Thank you!

Re: odd and even

2018-05-01 Thread ToddAndMargo
Please remember that I have about 1/100 of your skill when you explain things to me.  (For instance, I have no clue what `subset` is or how to use it.) -T On 04/30/2018 06:52 AM, Theo van den Heuvel wrote: > Hi Todd, > > different people have different ways of learning things. Diving into the

Re: odd and even

2018-04-30 Thread Theo van den Heuvel
Hi Todd, different people have different ways of learning things. Diving into the documentation isn't ideal for all of us. I find the book by Laurent Rosenfeld, "Think Perl 6", O'Reilly, extremely helpful in addition to the docs. My problem is that I am working with many and quite different

Re: odd and even

2018-04-30 Thread Elizabeth Mattijsen
t;>>>> >>>>> I know it would only take me 25 seconds to write one, >>>>> but do we have an odd and even function build in? >>>>> >>>>> >>>>> Many thanks, >>>>> -T >>>>> >>

Re: odd and even

2018-04-30 Thread Elizabeth Mattijsen
t;>>>> >>>>> I know it would only take me 25 seconds to write one, >>>>> but do we have an odd and even function build in? >>>>> >>>>> >>>>> Many thanks, >>>>> -T >>>>> >>

Re: odd and even

2018-04-30 Thread ToddAndMargo
On 04/30/2018 05:44 AM, Elizabeth Mattijsen wrote: On 30 Apr 2018, at 12:43, ToddAndMargo wrote: Am 30.04.2018 um 08:47 schrieb ToddAndMargo: Hi All, I know it would only take me 25 seconds to write one, but do we have an odd and even function build in? Many thanks, -T $ perl6 -e &#x

Re: odd and even

2018-04-30 Thread Elizabeth Mattijsen
> On 30 Apr 2018, at 12:43, ToddAndMargo wrote: > > >> Am 30.04.2018 um 08:47 schrieb ToddAndMargo: >>> Hi All, >>> >>> I know it would only take me 25 seconds to write one, >>> but do we have an odd and even function build in? >>>

Re: odd and even

2018-04-30 Thread ToddAndMargo
Am 30.04.2018 um 08:47 schrieb ToddAndMargo: Hi All, I know it would only take me 25 seconds to write one, but do we have an odd and even function build in? Many thanks, -T $ perl6 -e 'my $x=3; say $x.odd;' No such method 'odd' for invocant of type 'Int'. Did

Re: odd and even

2018-04-30 Thread Martin Barth
Are you aware of the %% operator? $var %% 2 checks wether it is dividable by 2. Am 30.04.2018 um 08:47 schrieb ToddAndMargo: Hi All, I know it would only take me 25 seconds to write one, but do we have an odd and even function build in? Many thanks, -T $ perl6 -e 'my $x=3; say $x.odd

Re: odd and even

2018-04-30 Thread ToddAndMargo
n, please do not try to explain. And real fun search for "perl" in the docs. You only get about 325,732 hots. (This is why I asked about odd and even.) So, the main issue I have with the docs is that they "seem" to be written as a refresher for an advanced use and not as a train

Re: odd and even

2018-04-30 Thread JJ Merelo
When they are not, please raise an issue. We'll try to solve it ASAP. El lun., 30 abr. 2018 a las 9:46, ToddAndMargo () escribió: > On 04/30/2018 12:04 AM, JJ Merelo wrote: > > Check out the docs.perl6.org page... And no, we > > don't. > > Love the docs. Not always really

Re: odd and even

2018-04-30 Thread ToddAndMargo
On 04/30/2018 12:04 AM, JJ Merelo wrote: Check out the docs.perl6.org page... And no, we don't. Love the docs. Not always really helpful though.

Re: odd and even

2018-04-30 Thread JJ Merelo
Check out the docs.perl6.org page... And no, we don't. El lun., 30 abr. 2018 a las 8:48, ToddAndMargo () escribió: > Hi All, > > I know it would only take me 25 seconds to write one, > but do we have an odd and even function build in? > > > Many thanks, > -T > &

odd and even

2018-04-29 Thread ToddAndMargo
Hi All, I know it would only take me 25 seconds to write one, but do we have an odd and even function build in? Many thanks, -T $ perl6 -e 'my $x=3; say $x.odd;' No such method 'odd' for invocant of type 'Int'. Did you mean 'ord'? in block at -e