Perl 6 Cool Perl 6 #13

Arrays / Hashes

Unlike Perl 5, the sigil does not change for array or hash access:

my @suits      = ('Clubs', 'Diamonds', 'Hearts', 'Spades');
my %scores     = pmichaud => 52,
                 mäsak    => 95,
                 PerlJam  => 78;

say @suits[2];               # Hearts
say %scores{'pmichaud'};     # 52
Copyright © 2010
http://www.pmichaud.com/2010/pres/