If you don't define the type of a Scalar and don't assign to it you'll have an undefined Any (the Parent class of all the other types). If you assign Nil to it then you have the same effect.
You can make $x to be Nil by iether casting it : my Nil $x; or binding it to Nil; my $x; $x := Nil; Basically Nil is special, slippery and a bit hard to catch. On Wed, 12 Sep 2018 at 06:56 ToddAndMargo <toddandma...@zoho.com> wrote: > What am, I missing? > > $ p6 'my $x; if $x =:= Nil { say "Nil" } else { say "Not Nil"; };' > Not Nil > > $ p6 'my $x = Nil; if $x =:= Nil { say "Nil" } else { say "Not Nil"; };' > Not Nil > -- Simon Proctor Cognoscite aliquid novum cotidie