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
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
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
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:
>
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.
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