Subject: | pull minicpan location from .minicpanrc if not specified |
App::CPAN::Mini::Visit has some code that might be worth copying. it
pulls the minicpan location from the config (.minicpanrc) if it is not
specified:
# locate minicpan directory
if ( ! $opt->get_minicpan ) {
my %config = CPAN::Mini->read_config;
if ( $config{local} ) {
$opt->merge_defaults( {minicpan => $config{local}} );
}
}