willymacoy has asked for the wisdom of the Perl Monks concerning the following question:
How can I tell whether I am running a module in development, or it has been installed?
Here is my challenge: I want to read a config file that might be different in development than in production. And they might be on the same machine. I use File::Sharedir for my read-only files, and that returns a different location in each case. But that location is not really ideal for config files. It is too obscure.
File::UserConfig does want I want, but returns the same directory during development as after installation.
How do others manage dev/prod config files without defining them absolutely in code?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Development config files
by moritz (Cardinal) on May 15, 2011 at 11:36 UTC | |
|
Re: Development config files
by John M. Dlugosz (Monsignor) on May 15, 2011 at 09:13 UTC | |
by willymacoy (Acolyte) on May 15, 2011 at 09:17 UTC | |
by John M. Dlugosz (Monsignor) on May 15, 2011 at 09:30 UTC | |
|
Re: Development config files
by Corion (Patriarch) on May 15, 2011 at 08:22 UTC | |
by willymacoy (Acolyte) on May 15, 2011 at 09:03 UTC | |
by Corion (Patriarch) on May 15, 2011 at 09:48 UTC | |
by willymacoy (Acolyte) on May 15, 2011 at 19:43 UTC |