Installing PERL modules using CPAN

From Organic Design wiki
Procedure.svg Installing PERL modules using CPAN
Organic Design procedure

Documentation is available at perldoc CPAN.

Searching CPAN

The website http://search.cpan.org provides a search box to search for keywords associated with packages.

Installing modules

Once you know the module name you would like to install, you need to sudo as root and install the module, e.g.

<perl>

sudo -s perl -MCPAN -e 'install Statistics::ChiSquare' </perl>

Interactive CPAN environment

Type;

<perl>

perl -MCPAN -s shell

  1. list of useful commands

help # list of available commands o conf # configuration of CPAN r # reinstall recommendations i /statistics/ # pattern searching of authors, bundles, distributions, modules get [Package] # fetch make install </perl>