in reply to Installing a config file during module operation

There are two that I can think of that prompt for configuration details on install, and keeps track of them -- libnet (which stores its config in Net/libnet.cfg in your perl module path) and CPAN, which writes to both CPAN/Config.pm and $HOME/.cpan/CPAN/MyConfig.pm

  • Comment on Re: Installing a config file during module operation

Replies are listed 'Best First'.
Re^2: Installing a config file during module operation
by jkeenan1 (Deacon) on Aug 08, 2005 at 01:55 UTC
    Thanks for this and the other comments. My inclination is to try to keep this feature as simple as possible, which implies (to me, at least) not loading up the CPAN distribution with non-core modules which are only used to install one file. Particularly if those modules themselves have dependencies. I'll look at how libnet and CPAN.pm do it on Windows and Darwin, then try to borrow what seems most useful.

    In any event, I have a couple of other refinements I need to do before I get to this one, so I have time to think about it. I'll let you all know what develops.

    Thanks for responding.

    Jim Keenan