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

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");

Replies are listed 'Best First'.
Re^4: CPAN::Shell not loading CPAN config
by bannaN (Acolyte) on Jul 19, 2010 at 12:05 UTC

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