What I'll do sometimes is put the default config file after __DATA__ (since I usually do this in a module), and instantiate the Config object (e.g., Config::Auto or Config::IniFiles) on both the user config file and on DATA, and every time someone queries for a parm, I first check the user config file, with a fallback to the hard-coded config. It does use up more memory/CPU time to do it this way vs using a hash, but it does get me precisely the same interface to both user- and hardcoded-configs.
In reply to Re: backup storage for variables
by Tanktalus
in thread backup storage for variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |