There seems to be some inconsistent behavior when variables of the same letter-name but different sigils are used:
> my $a="foo";
foo
> my @a=1,2
[1 2]
> say $a
foo               # this is what I have expected
> my $b = 1,2,3
(1 2 3)
> my @b = (0, $b.Slip)
[0 1]             # I expect to get [0 1 2 3]; (0, |$b) not work either
> say $b
1                 # I expect $b to be unchanged, (1,2,3), but it is now 1;
> say @a
[1 2]
> say @b
[0 1]
>
I am not sure why @a does not affect $a, whereas @b affects $b. Can someone please elucidate?
Thanks !!!
lisprog