What is CPAN?

CPAN = Comprehensive Perl Archive Network

But that "word" is used in many contexts

A module distribution infrastructure

There's Perl Author's Upload Server for uploading modules, and lots of mirrors from which you can download modules.

A website

There are multiple websites that you can use when searching for perl modules, and when viewing documentation and of modules. Among the popular ones are http://search.cpan.org/, http://kobesearch.cpan.org/ and https://metacpan.org/. The latter also provides a rich HTTP-based API, which is very good for automating CPAN-related data analysis.

Module Installers

CPAN.pm comes with the cpan command line tool, CPANPLUS has cpanp, App::cpanminus ships with cpanm.

Those clients need a CPAN mirror (either online or a local mirror). All of them work with any mirror, though cpanm talks to a "cpanmetadb" server (not the same as metacpan.org) to find distributions (but it can work offline with a local CPAN mirror too).


My personal favorites are cpanm (because it works so well, and doesn't produce loads of output that bores me), and search.cpan.org and metacpan.org as web interfaces.


In reply to What is CPAN? Re: cpan vs metacpan by moritz
in thread cpan vs metacpan by Steve_BZ

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.