in reply to cpan home

There seems to be no documented way, but looking at CPAN::HandleConfig::require_myconfig_or_config, the following could work (likely you want that as a separate script or alias):

perl -e "require '~/.cpan/MyConfig.$(uname).pm'; $INC{'CPAN/MyConfig.p +m'}=1" -MCPAN -eshell

Likely, your ~/.cpan/MyConfig.linux.pm should look like

package CPAN::MyConfig; ... options as in the common CPAN::MyConfig

Replies are listed 'Best First'.
Re^2: cpan home
by equick (Acolyte) on Feb 16, 2011 at 11:37 UTC
    Thanks for the quick reply. I gave that a try but hit a slight error.
    perl -e "require '~/.cpan/CPAN/MyConfig.$(uname).pm'; $INC{'CPAN/MyCon +fig.pm'}=1" -MCPAN -e shell Semicolon seems to be missing at -e line 1. syntax error at -e line 1, near "}=" Execution of -e aborted due to compilation errors.
      Put it in a file
      $ cat mcpan #!/usr/bin/perl -- require $INC{'CPAN/MyConfig.pm'} = ...; require CPAN; CPAN::shell();