-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpan_new.pl
55 lines (43 loc) · 830 Bytes
/
cpan_new.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env perl
use 5.010001;
use strict;
use warnings;
use English qw( -no_match_vars ); # Avoids regex performance penalty
$OUTPUT_AUTOFLUSH = 1;
our $VERSION = '0.101';
use autodie;
use diagnostics;
use CPAN;
CPAN::HandleConfig->load;
CPAN::Shell::setup_output;
CPAN::Index->reload;
say 'START';
my @modules = qw(
Term::ReadKey
Term::ReadLine::Perl
YAML
YAML::XS
CPAN::SQLite
CPAN::Reporter
JSON
JSON::XS
Test::Reporter::Transport::Metabase
Crypt::SSLeay
LWP::UserAgent
LWP::Protocol::https
IO::Socket::SSL
Module::Install::DSL
App::cpanminus
App::cpanminus::reporter
App::pmuninstall
Perl::Version
IPC::System::Simple
Carp::Always::Color
App::perlbrew
);
# install into a virgin perlbrew:
for my $mod (@modules) {
CPAN::Shell->install($mod);
}
say 'END';
__END__