Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my %hash = one => "eins", two => "zwei", three => "drei";
- %hash.keys.elems == 3 or die "Wrong count";
- # Delete one key-value pair.
- %hash<three>:delete;
- %hash.keys.elems == 2 or die "Wrong count";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement