faqts : Computers : Programming : Languages : Perl : Installation and Setup

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

25 of 27 people (93%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

How do I install new modules from CPAN?

Jun 16th, 2001 06:40
Per M Knutsen, http://www.cpan.org


Installing new modules is easy using the CPAN module that comes with 
the standard Perl distribution.
To use the CPAN module, type (at command line):
% perl -MCPAN -e "shell"
CPAN will query you with instructions on how to retrieve files. After 
CPAN is configures you can install new modules by typing from within 
the CPAN shell:
install Some::Module
Rather than installing from within the CPAN module, you can run the 
entire process from your command line with the command:
% perl -MCPAN -e "install 'Some::Module'"