#!/usr/bin/perl use CPAN; for $mod (qw(MD5 Net::SSH::Perl)){ my $obj = CPAN::Shell->expand('Module',$mod); $obj->install; } #### $obj->makepl_arg = "arg1 arg2 arg3 ..."; $obj->install;