Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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
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 examining the Monastery: (7)
As of 2014-09-20 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (155 votes), past polls