in reply to Re: Development config files
in thread Development config files

I have sat here and asked myself that question. With no It Just Works answer.

One way is have a file in my module-sharedir that doesn't get installed when I use File::ShareDir::Install. I would simply test for that file and I would know.

I could put a file there, have Makefile.PL remove it, and replace it before exiting.

If File::UserConfig gave different results like File::ShareDir does then I would be laughing.

Replies are listed 'Best First'.
Re^3: Development config files
by Corion (Patriarch) on May 15, 2011 at 09:48 UTC

    My setup is to have the configuration file passed on the command line. I have different shell scripts that (re)start the development and production process, and they supply the different configuration files to the program.

    Personally, I would hardcode/supply only a single, very basic configuration with the module itself. Provide the option to write a fresh configuration file based on the current environment. Almost all web frameworks provide such helper applications.