0

I have a file which has a list of library I need for a perl script. How to tell the perl to automatically install all of them ?

The file I have it something like this.

dependencies.txt

Memoize
Carp
Time::Hires

Tg.
  • 5,608
  • 7
  • 39
  • 52
  • I hope that you meant `Time::Hires` (two colons). – cjm Jun 14 '11 at 04:34
  • From the [Stack Overflow Perl FAQ](http://stackoverflow.com/questions/tagged/perl?sort=faq): [What's the easiest way to install a missing Perl module?](http://stackoverflow.com/questions/65865/whats-the-easiest-way-to-install-a-missing-perl-module) – daxim Jun 14 '11 at 08:26
  • @cjm, I hope that you meant [Time::HiRes](http://search.cpan.org/perldoc?Time::HiRes) (camel case HiRes). :P – Ashley Jun 14 '11 at 16:12
  • @Ashley, yes, I just noticed the missing colon, I didn't validate the module name. – cjm Jun 14 '11 at 22:14

1 Answers1

3

The easiest way is probably to install cpanm and then type:

cpanm <dependencies.txt
cjm
  • 61,471
  • 9
  • 126
  • 175