On Sun, 15 Jul 2012 09:00:01 -0700, bbkr wrote:
> Assignment works but it fails to recognize declared variable.
> 
> $ perl6 -e 'my $::x = 3; say $::x;'
> ===SORRY!===
> Variable $x is not declared
> at -e:1
> 
> And at the same time it is... considered declared.
> 
> $ perl6 -e 'my $::x = 3; my $::x = 4;'
> ===SORRY!===
> Redeclaration of symbol $::x
> at -e:1
> 


This came up as a side-issue in RT#113042

In order to close that ticket I'm putting a reminder here
to also consider anonymous state variables e.g. "$::".

Reply via email to