http://www.perlmonks.org?node_id=294681


in reply to constant hash values?

The mention of Hash::Util in earlier replies is an excellent suggestion.

It is also worth mentioning that there is a way you can influence scalars, arrays, or hashes to exhibit arbitrary behavior. You can tie any variable to an object whose class can do just about whatever you want it to.

Do a perdoc perltie and search for the strings Tying Hashes and TIEHASH for more information.

Hope this helps!