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 line 1 $ perl6 -e 'my $x=3; say $x.even;' No

Re: nil mystery

2018-04-29 Thread ToddAndMargo
On 04/29/2018 10:12 PM, ToddAndMargo wrote: On 04/29/2018 09:32 PM, Andrew Kirkpatrick wrote: There is not enough context to answer or even reproduce the problem - how are the variables declared and what values do they have just prior to this line? Some simpler examples: $ perl6 -e 'my $x="ab

Re: nil mystery

2018-04-29 Thread ToddAndMargo
On 04/29/2018 09:32 PM, Andrew Kirkpatrick wrote: There is not enough context to answer or even reproduce the problem - how are the variables declared and what values do they have just prior to this line? Also, what version of rakudo? On 30 April 2018 at 11:29, ToddAndMargo wrote: Hi All, The

Re: nil mystery

2018-04-29 Thread Andrew Kirkpatrick
There is not enough context to answer or even reproduce the problem - how are the variables declared and what values do they have just prior to this line? Also, what version of rakudo? On 30 April 2018 at 11:29, ToddAndMargo wrote: > Hi All, > > These two throw an operating on a "Nil" error: >

nil mystery

2018-04-29 Thread ToddAndMargo
Hi All, These two throw an operating on a "Nil" error: $PartsStr ~= "$PartNo"; $PartsStr ~= "{$PartNo}"; But this does not: $PartsStr ~= "{$PartNo}" ~ ""; And this does not either: $PartsStr ~= "abcde"; Huh? Many thanks, -T -- ~~~ Serious error.

Is the free download for Lenz' "Perl 6 Fundamentals" legitimate?

2018-04-29 Thread Joseph Brenner
I was just wondering if "www.world-of-digitals.com" is a legitmate source for the Moritz Lenz book "Perl 6 Fundamentals". They've got a PDF up available for free download: https://www.world-of-digitals.com/en/moritz-lenz-perl-6-fundamentals-ebook-pdf But I also see that Apress is trying to sell