Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the name of Perl distribution units?

Tags:

perl

Package is a namespace. Module is a file with Perl code. cpan and cpanm are probably package managers. When I do cpanm XML::LibXML I install what exactly?

like image 964
x-yuri Avatar asked Dec 17 '22 21:12

x-yuri


1 Answers

Distribution (or "dist" for short).

The name for a Perl distribution unit is distribution, so cpanm XML::LibXML installs the XML-LibXML distribution, because it includes the specified XML::LibXML module.

Example 1

Screenshot of meta::cpan using the word "distribution"

Example 2

Screenshot of meta::cpan using the word "distribution"

Note that linux distributions usually have a package manager such as apt or yum, and many Perl distributions are made available as packages for those package managers. Someone using those package managers might refer to Perl distributions as packages, but that's not standard Perl jargon.

like image 153
ikegami Avatar answered Jan 03 '23 03:01

ikegami