> What about array and hash accesses starting with scalar-indicators?
> I guess it is easy to misread A2 to mean that not only will
>
> scalar(@trucks[5])
>
> return the sixth truck, but
>
> $trucks[5]
>
> will no longer work.
Just so everyone is clear: it will still work. It just won't mean what it
used to mean.
Here's a translation table from my soon-to-be-released article, Exegesis 2:
Access through... Perl 5 Perl 6
================= ====== ======
Scalar variable $foo $foo
Array variable $foo[$n] @foo[$n]
Hash variable $foo{$k} %foo{$k}
Array reference $foo->[$n] $foo[$n] (or $foo.[$n])
Hash reference $foo->{$k} $foo{$k} (or $foo.{$k})
Code reference $foo->(@a) $foo(@a) (or $foo.(@a))
Array slice @foo[$n] <TBA>
Hash slice @foo{$k} <TBA>
Damian