I am trying to make a class that installs CPAN modules with the CPAN::Shell package. But if i run a command like:
perl -MCPAN -e 'CPAN::Shell->o("conf")'
It seems like the CPAN::Shell package are not honuring the configuration file. Output is as following:
$CPAN::Config options from : commit [Commit changes to disk] defaults [Reload defaults from disk] help [Short help about 'o conf' usage] init [Interactive setting of all options] applypatch undef auto_commit undef build_cache undef build_dir undef build_dir_reuse undef build_requires_install_policy undef bzip2 undef cache_metadata undef check_sigs undef colorize_debug undef colorize_output undef (...)
Its runned as root, and both Config.pm and MyConfig.pm is located under /root/.cpan/CPAN
Have anyone had this problem before, any suggestions on how to solve this?
Best regards
In reply to CPAN::Shell not loading CPAN config by bannaN
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |