in reply to Re: CPAN::Shell not loading CPAN config
in thread CPAN::Shell not loading CPAN config

Hm, cant find any verboose option with -h, but i've tried with the -W options to enable all warnings, nothing file related

perl -MCPAN -e 'CPAN::Shell->o("conf")' -W

If its a different command, please enlighten me.

Since script is runned as root and the config files are owned by root i doubt this is the problem though

Replies are listed 'Best First'.
Re^3: CPAN::Shell not loading CPAN config
by Khen1950fx (Canon) on Jul 16, 2010 at 23:56 UTC
    Your language isn't very clear. If I understand the question correctly, then I would try this:
    perl -MCPAN::FirstTime -e 'CPAN::FirstTime::init();'
    And from a script:
    #!/usr/bin/perl use strict; use warnings; use CPAN; use CPAN::FirstTime; CPAN::FirstTime::init(); CPAN::Shell->install( "Bundle::CPAN", "Bundle::LWP");

      thanks, i solved the problem with CPAN::HandleConfig->load; Wasnt aware that i had to explicity load the configuration file.