You can use the simplified CPANPLUS module interface, or CPANPLUS::Backend, the object-oriented way.
# Simple version use CPANPLUS; for my $mod (qw/Acme::Drunk Acme::Bleach/) { install($mod); } # Complex version, probably better use CPANPLUS::Backend; my $cb = CPANPLUS::Backend->new(); $cb->install( modules => [ 'Acme::Drunk', 'Acme::Bleach' ] );
CPANPLUS installs prerequisites automatically, provided you have the configuration option 'prereqs' set to 1.
In reply to Re: cpanp scripting
by juster
in thread cpanp scripting
by zerohero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |