in reply to Automating CPAN Configuration

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