in reply to Installing a config file during module operation

The cpan command uses /usr/local/lib/perl5/5.8.7/CPAN/Config.pm on my system. The user's version of this is at ~user/.cpan/CPAN/MyConfig.pm

I haven't read the code, but I believe that the writing of the user version is done in /usr/local/lib/perl5/5.8.7/CPAN.pm so you could look at that.

  • 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 CountZero (Bishop) on Aug 07, 2005 at 19:56 UTC
    This might work on a non-Windows system, but on Windows it is definitely broken.

    To find the "home"-directory, CPAN::Config->load uses $ENV{HOME} which on my Windows XP Professional box simply doesn't exist.

    Windows XP is able to store multiple user-profiles but does so in the directory indicated by $ENV{USERPROFILE}.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law