in reply to How to not Prompt when Installing a Module
You can also set the following environment variables before running the cpan shell, which will avoid all questions, whether by the cpan shell or by modules you are installing
export PERL_MM_USE_DEFAULT=1 export PERL_EXTUTILS_AUTOINSTALL="--defaultdeps" perl -MCPAN -e 'install Bundle::CPAN'
You may be interested in App::cpanminus the new zero configuration CPAN client
In Section
Seekers of Perl Wisdom