in reply to Re: avoiding hash key typos
in thread avoiding hash key typos
I don't know how extensive your script, but if it is relatively simple, I would avoid using modules and specially designed tie's when the basic tools of the language suffice. Assign the keys to variables once and then use the variables to do hash accesses. If your real code is more complex, you might look at Hash::Util or another appropriate module, or use fields with OO accessors as was already suggested.
--DrWhy
"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
|
---|