Re: nil mystery

2018-04-30 Thread ToddAndMargo
On 04/30/2018 05:20 PM, Andrew Kirkpatrick wrote: I couldn't reproduce this by assigning Nil to a variable Well as it transpires, when I tested the {$x} version, I forgot to press "save". Also, a one liner operated differently than a program. And to top things off, when reading "this" data b

Re: nil mystery

2018-04-30 Thread Andrew Kirkpatrick
The original error you quoted was about use of Nil. I couldn't reproduce this by assigning Nil to a variable, turns out that's because such an assignment is specified to set the variable to the default value of the type of the variable. my $x = Nil gives (Any), my Str $y = Nil gives (Str), and only

Re: nil mystery

2018-04-30 Thread ToddAndMargo
On Sun, Apr 29, 2018 at 10:20:48PM -0700, ToddAndMargo wrote: 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 pr

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