Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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/");


Comment on Re^3: All CPAN Modules
Select or Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031325]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2015-07-30 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls