CPAN - query, download and build perl modules from CPAN sites

Interactive mode:

perl -MCPAN -e shell;

Batch mode:

use CPAN;
autobundle, clean, install, make, recompile, test

Example:


root@laptop:~# perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)

cpan[1]> test
CPAN: Storable loaded ok (v2.18)
CPAN: LWP::UserAgent loaded ok (v5.819)
CPAN: Time::HiRes loaded ok (v1.9711)

I would like to connect to one of the following sites to get ‘authors/01mailrc.txt.gz’:

http://www.perl.org/CPAN/
ftp://ftp.perl.org/pub/CPAN/

Is it OK to try to connect to the Internet? [yes]

Source: Man Page - http://theoryx5.uwinnipeg.ca/CPAN/perl/lib/CPAN.html

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.