rinceWind has asked for the wisdom of the Perl Monks concerning the following question:
I know that this is do-able, and almost certainly done very often. What I am looking for is the best practice for a non-trivial Makefile.PL - one that needs to save some config information used by the module test scripts. An example would be a server, database, username and password.
I would be looking to have the Makefile.PL prompt the user with some questions, whose answers get saved somewhere. If the Makefile.PL script gets rerun, the previously saved values are presented as defaults.
I know there are a number of modules that can save config information (Config::Tiny, Config::Simple, AppConfig, even YAML), I just wonder whether the user interaction part has been turned into a module. I also am looking for something that plays properly with automated installs, such as CPANPLUS or the CPAN shell.For my particular instance, I don't want to go down the Module::Build route.
--
I'm Not Just Another Perl Hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Saving the testing config in Makefile.PL
by Joost (Canon) on Mar 23, 2005 at 17:42 UTC | |
|
Re: Saving the testing config in Makefile.PL
by brian_d_foy (Abbot) on Mar 23, 2005 at 18:32 UTC | |
|
Re: Saving the testing config in Makefile.PL
by chromatic (Archbishop) on Mar 24, 2005 at 01:10 UTC |