Installing PERL modules using CPAN

From Organic Design
Jump to: navigation, search
Procedure.svg Installing PERL modules using CPAN
Organic Design procedure

Documentation is available at perldoc CPAN.

Searching CPAN

The website 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.

sudo -s
perl -MCPAN -e 'install Statistics::ChiSquare'

Interactive CPAN environment


perl -MCPAN -s shell
# 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