http://www.perlmonks.org?node_id=1031325


in reply to Re^2: All CPAN Modules
in thread All CPAN Modules

Rather than trying to install everything, it's better to break your list down into manageable chunks. For example to install all modules beginning with "A":
#!/usr/bin/perl use strict; use warnings; use CPAN; print $_->install() foreach CPAN::Shell->expand("Module", "/^A/");
I usually break it down even further. For example, all modules starting with "Aa", "Ab", etc.
#!/usr/bin/perl use strict; use warnings; use CPAN; print $_->install() foreach CPAN::Shell->expand("Module", "/^Aa/"); print $_->install() foreach CPAN::Shell->expand("Module", "/^Ab/");
And for an entire namespace, say Catalyst:
print $_->install() foreach CPAN::Shell->expand("Module", "/^Catalyst/");

Replies are listed 'Best First'.
Re: All CPAN Modules
by jnbek (Scribe) on Apr 30, 2013 at 05:43 UTC

    Very nice!! Thanks these ideas will work very nicely.