Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: All CPAN Modules

by Khen1950fx (Canon)
on Apr 30, 2013 at 05:36 UTC ( #1031325=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031325]
[LanX]: better try 3
[shmem]: that python stuff is none of my business.
[shmem]: but sometimes I have to debug things implemeted by "the other team" and stick their nose into their dirt.
[shmem]: because it affects "my team"
[shmem]: ah well... git is incomplete. There are commands missing:
[shmem]: git stop crap
[shmem]: for instance

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-03-20 18:35 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (257 votes). Check out past polls.