Perl for Beginners Archives

How to install a Perl Module from CPAN

Developers and admins who are new to Perl might wonder how they can install one of the 18.000 available Perl Modules from http://search.cpan.org.

One of the many ways to do this is to call the CPAN shell from the Unix command line, like so:

cpan Modern::Perl

You could also go and give the cpan command a list of modules that you like to install:

cpan Modern::Perl DBI YAML JSON::XS

However, if you just type in "cpan" you…

About Marc

user-pic I am a Perl developer and CPAN author. I develop software with Perl since 1996 and Perl is still one of my favorite programing languages.