use v6; my %hash = :a, :b; say %hash{'a'}; # says A say %hash; # say B #### #most likely not what you want, but prints an undefined warning say %hash<$somekey>;