/ Published in: Perl
Perl hash sets are hashes used to represent sets. Their keys are the set elements, and the corresponding values are just 1. For keys that are not set elements, the hash will return undef, equivalent to false.
Adding a whole array to a hash set is often useful, but how to do it is slightly tricky and not widely known. Here goes...
Adding a whole array to a hash set is often useful, but how to do it is slightly tricky and not widely known. Here goes...
Expand |
Embed | Plain Text