I was just comparing the numbers if different "Archive Networks", like CPAN, CTAN, rubygems.org etc. CPAN displays two very different numbers:
As I'm not a Perl programmer (I'm just preparing a talk for university), I'm not familiar with Perl's wording. I tried to look them up and only found "module" to be defined by Perl itself. As far as I understood it, a module is any file with a namespace.
However, I can't find any declarations of what a distribution is. Even CPAN only shows a list of modules or they use both words together (as "module distribution"). Can anyone clear my mind?
In Perl a true value is any value that is not: null, zero or a zero-length string. A distribution is a collection of files that usually includes a Perl module and several other files.
The Comprehensive Perl Archive Network (CPAN) is a repository of over 250,000 software modules and accompanying documentation for 39,000 distributions, written in the Perl programming language by over 12,000 contributors.
CPAN, the Comprehensive Perl Archive Network is the system that makes these available for others to download and install. CPAN uses PAUSE's permissions data to determine if a given release contains unauthorized packages.
CPAN doesn't actually install files. It runs the install script embedded in each distribution, which then performs the actual install. For distributions using ExtUtils::MakeMaker, the defaults are documented here: https://metacpan.org/pod/ExtUtils::MakeMaker#make-install (and the default value of INSTALLDIRS is site ).
A distribution will contain one or more modules, documentation, a build script, and also typically a test suite, a file manifest, readme, change log, and license information. Modules bundled together in a distribution are often part of complete class library, or at the very least all related tools divided into intuitively-named packages.
Taking, for example, the core IO distribution, you can see it contains the following modules:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With