There are a number of ways to do this. One is to lock the keys of the hash so it won't allow you to add new ones. That would catch your typos.
What you're doing doesn't look too bad, except that I don't know why you're trying to put them all in one file. Each hash should have its keys defined in the place where the hash is defined, or else you'll have a hard time knowing which of the thousand possibly keys apply to the hash you want to use.
In reply to Re: Advice on Global Constants
by perrin
in thread Advice on Global Constants
by benno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |