Advertisement
cwchen

[Perl 6] Creating an empty hash.

Oct 28th, 2017
884
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.12 KB | None | 0 0
  1. my %hash;
  2.  
  3. %hash<one> = "eins";
  4. %hash<two> = "zwei";
  5. %hash<three> = "drei";
  6.  
  7. %hash<two> eq "zwei" or die "Wrong value";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement