Of course, I can just do 'key' => undef, etc... but this becomes tedious when you have a bunch of keys.
I want to do this when I am declaring the hash, and not afterwards. How can I do this when I first declare the hash without having to do 'key' => undef, for each key/value pair?
Thank you Monks.
In reply to How to create a hash whose values are undef? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |