Right, the mirror selection is the one thing that doesn't have a default. There's a trick to this.
require CPAN::Config; $CPAN::Config->{urllist} = [ $mirror_url ]; require CPAN; CPAN::install('My::Module');
If memory serves, that should work fine - or if not something pretty close
- Matt S Trout
In reply to Re: Automating CPAN Configuration
by Anonymous Monk
in thread Automating CPAN Configuration
by dsheroh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |