CPAN shell: automatic 'yes' answers?

M

Markus Dehmann

I use the CPAN shell to install a modules:

perl -MCPAN -e shell

But if the module needs a lot of other modules, CPAN asks me

"Do you want to add Date::Calc etc to the download chain? [y]"

and I have to hit enter a thousand times to confirm all the additional
downloads.

Is there an option to allow these additional modules automatically?

Markus
 
P

Paul Lalli

Christian said:
Markus said:
I use the CPAN shell to install a modules:

perl -MCPAN -e shell

But if the module needs a lot of other modules, CPAN asks me

"Do you want to add Date::Calc etc to the download chain? [y]"

and I have to hit enter a thousand times to confirm all the additional
downloads.

Is there an option to allow these additional modules automatically?

Just change the prerequisites policy on the cpan shell by saying
cpan> o conf prerequisites_policy follow

Note that if you want this change to be saved the next time you start
your CPAN shell, you have to commit the changes:

cpan> o conf commit

Paul Lalli
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top