in reply to Re: Re: Re: SOP6W
in thread SOP6W
how would you do the equivalent of print $hash{bang}; in Perl 6? print %hash{bang};?That's right. I think sigils on hashes and arrays (when accessing elements or slices) are one of the most confusing things for beginners, and this is an effort to correct that. I think $hash{bang} can be optionally $hash.{bang} (remember "->" is changing to "."), but you can leave out the '.' since its unambiguous either way.
|
---|