in reply to CPANPLUS custom configurations
cpanplus will load multiple configuration files if they are present. The default shell doesn't provide a function for saving the configuration anywhere but to the system and user configuration files, but you can create additional files yourself.
It loads system configuration, then user configuration, then any other configuration file it finds. Your check with strace might suggest otherwise, but the system and user configuration modules are brought to the head of the list after discovery.
A configuration file is any module with a name starting with "CPANPLUS/Config/", relative to the current base directory (by default: $home/.cpanplus on a linux system) or any folder in @INC. The modules other than the system and user modules are loaded in somewhat random order (keys %hash, with all the module names as the keys of the hash), so having more than one may be a bit confusing.
So, you can have CPANPLUS/Configure/Custom.pm in your cwd when you run cpanp and this will be loaded after the system and user configurations. You can put whatever you want in your custom configuration module. An easy start might be to copy your user configuration module.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CPANPLUS custom configurations
by przemo (Scribe) on May 08, 2009 at 10:57 UTC | |
by ig (Vicar) on May 09, 2009 at 03:45 UTC |