I was in a similar situation. Here's what I did:
And because it's under mod_perl, the code that builds the hashref is in a startup.pl that is called when Apache starts, so it's instantly available to my scripts, and DB calls are only made when the server starts.
cLive ;-)
In reply to Re: Synchronizing constants/enums in database and code
by cLive ;-)
in thread Synchronizing constants/enums in database and code
by seattlejohn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |