On 24 Aug 2000 15:53:42 -0000, Perl6 RFC Librarian wrote:
>Everyone on this list should be familiar with the problem. You can't
>tell scalars and references apart by looking at them. They are
>completely ambiguous. Consider:
>
> $stuff{key} # hash value
> $stuff[0] # array value
> $stuff # scalar or reference?
>
> %stuff # hash
> @stuff # array
> $stuff # scalar or reference?
>
>You get the idea.
Question. Does this imply that with your proposal, that arrays and
hashes can no longer contain references? Because arrays and hashes can
only contain scalars.
Well, that would do wonders for Perl's emulation of multidimensional
structures.
--
Bart.