Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env perl6
- use v6;
- my $key = 'foo';
- my %hash;
- %hash.append($key, 'bar');
- %hash.append($key, 'baz');
- dd %hash;
- say "\nBraces with string:";
- dd %hash{'foo'};
- say "\nChevrons, 1 word:";
- dd %hash<foo>;
- say "\nBraces with var:";
- dd %hash{$key};
- say "\nGuillemets, 1 var:";
- dd %hash«$key»;
- say "\nBraces with var + comma:";
- dd %hash{$key,};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement