in reply to automating install of perl modules
You might want to take a look to brian_d_foy's Building My Own CPAN.
The presentation explains how to...
However, the quick answer to your question maybe is in slides 23 and 34:
CPAN::Shell->o( qw( conf urllist unshift ), $where_i_found_cpan, );
Where $where_i_found_cpan (e.g. file:///MINICPAN) is a directory containing the typical CPAN structure with:
HTH
Update: Added an example for $where_i_found_cpan using the file:///... prefix.
|
|---|