in reply to How can I reference a hash value with an array
Previous posts have explained how you can do what you seem to want to do ... BUT WHY?
Why set up a hash where the keys (constant strings), point to constant values that are the same as the keys???
The only things you can do with a hash, are create it, set its value and reference its value.
Why use a constant, to select a value, that is a constant and the same constant as you used to select it?
Why not just use the constant?
Not only did you make it more complicated than it need be, you found an ingenious way of doing so:)
|
|---|