I'm trying to find an efficient way to predeclare a hash with a set of keys like 5,6,8-53,62-106 (see below). My set of keys are basically members of a set where the value is not important. For example, it is only important that exists($set{67}) is true.
I'm having trouble finding appropriate documentation on this issue. Does anybody have advice on my problem?
Thank you.
Paul
$set{5}++; $set{6}++; $set{8}++; $set{9}++; $set{10}++; $set{11}++; $set{12}++; ... ...
In reply to How do I efficiently predeclare a hash with a set of keys by lupey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |