You're right; it is indeed the subscripting punctuation that clarifies whether it's an array or a hash. In Perl 5, the leading sigil signifies what you want out of the data structure -- a scalar, a list, or a hash. In Perl 6, the leading sigil will remain constant, and context will determine what you get out of it.
In reply to Re: Hash usage question
by chromatic
in thread Hash usage question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |