Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: Re: Re: SOP6Wby runrig (Abbot) |
on Apr 25, 2003 at 23:31 UTC ( [id://253284]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Perl Monks Discussion
|
|