Questions tagged [cpan]

CPAN is the Comprehensive Perl Archive Network, a code and documentation archive of over 100,000 open-source Perl modules across more than 25,000 distributions written by more than 10,000 authors. This tag is not for general Perl questions; use the [perl] tag instead.

The Comprehensive Perl Archive Network (CPAN) is an open-source code and documentation archive of over 100,000 Perl modules across more than 25,000 distributions written by more than 10,000 authors.

CPAN has been online since October 1995 and is constantly growing. CPAN's main purpose is to provide a distributed repository for Perl programmers to locate, install, and share open source modules and code snippets.

Installable files on the CPAN are known as distributions. A distribution consists of one or more modules, documentation files (generally in ), or scripts. Distributions are typically packaged with an install script called Makefile.PL or Build.PL.

When to use this tag?

This tag is not for general Perl questions; use instead. This tag should be used for questions relating to cpan.org or modules for interacting with cpan.org and mirrors (like CPAN.pm ) ...

Documentation

CPAN Installation tools for end users

  • CPAN - the classic CPAN command line install shell
  • CPANPLUS - an updated API and command line interface to CPAN intended to be more scriptable
  • cpanminus - a faster and more concise CPAN installer
  • CPAN::Mini - create a minimal mirror of CPAN

Modules used for creating install/distribution scripts

  • ExtUtils::MakeMaker - the venerable module used to generate a make file via Makefile.PL.
  • Module::Install - a drop-in replacement for ExtUtils::MakeMaker that provides more intuitive features and customization for module authors
  • Module::Build - a mostly pure Perl alternative to ExtUtils::MakeMaker, which does not rely on a system make command.
  • Dist::Zilla - distribution builder
  • pip - Perl Installation Program

Related Links

1203 questions
5
votes
3 answers

Internal CPAN - what module

I want to setup in-house CPAN for distributing our internal code. So I was looking at CPAN::Mini as recommended here. But it looks there are other options as CPAN::Site, CPAN::Dark, Dist::Zilla ... I'm little bit overwhelmed with all these options.…
jira
  • 3,890
  • 3
  • 22
  • 32
5
votes
1 answer

Cannot install Test::File on Perl 5.32.0 MacOS Sierra

I'm attempting to install DateTime on my perlbrew 5.32.0, but the tests for its dependency Test::File are failing. The important part is as follows: t/owner.t ..................... # File [blib] belongs to 703404669 (729761796), not 703404669…
con
  • 5,767
  • 8
  • 33
  • 62
5
votes
2 answers

Problems installing CPAN Modules

i'm having loads of problem in trying to install CPAN Modules. Using the cpan.exe, I try to install a module with, for example, "install Win32::IE::Mecahnize" but I end up hitting a wall. In the beginning it find dmake.EXE and is okay, but when the…
Shah
  • 178
  • 1
  • 1
  • 11
5
votes
2 answers

Automatically Install Package-Based Perl Modules in Ubuntu

I would like to install the Perl modules required by a specific Perl script, such as those listed by the perl-depends tool. However, I would like to do that in Ubuntu using the apt-get, meaning installing the modules through the package repository…
Alan Turing
  • 12,223
  • 16
  • 74
  • 116
5
votes
1 answer

How do I parse E-Mail contents

How to parse the Email into sections like, header, body, attachment, and sender and receiver? I would like to use Perl or Perl Moose?
jubf
  • 51
  • 1
  • 2
5
votes
1 answer

Why is PSIXDISTS excluded from modules.perl6.org's rsync?

The script for retrieving all Perl 6 modules available on CPAN in modules.raku.org's DbBuilder.pm explicitly excludes any distributions from PSIXDISTS, even though there's a number of modules available in that namespace. What is the reason behind…
Tyil
  • 1,797
  • 9
  • 14
5
votes
6 answers

Is there anywhere I can find information on the relative popularity of Perl modules?

One of the problems of using CPAN is that "there's more than one module to do it". I often wonder what everyone else is using. Is there any information on the relative popularity of CPAN modules anywhere?
user181548
5
votes
1 answer

How does List::Util 'shuffle' actually work?

I am currently working on building a classifier using c5.0. I have a dataset of 8000 entries and each entry has its own i.d number (1-8000). When testing the performance of the classifier I had to make 5sets of 10:90 (training data: test data)…
B. Bowles
  • 764
  • 4
  • 9
  • 21
5
votes
1 answer

Is there a way to configure the default mirror for App::cpanminus (cpanm)?

I am aware you can easily configure cpan to use a specific mirror. However I recently started using cpanm at the advice of a friend, and I can't seem to find a way to set the default mirror without specifying --mirror http://cpan.metacpan.org on…
Bill
  • 89
  • 9
5
votes
1 answer

How do you get complete Kwalitee output for a Perl module before uploading it?

After I upload a module to PAUSE I can go sometime later to cpants.cpanauthors.org or metacpan.org and see a bunch of Kwalitee output and a Kwalitee score. How are you supposed to get this same information beforehand? For instance, I have the…
Ken Schumack
  • 719
  • 4
  • 11
5
votes
2 answers

unable to install CPAN using Yum on CentOS 7.3

while trying to install "CPAN" using Yum command [CentOS 7.3(64-bit)] I am getting below error: ---> Package glibc.i686 0:2.17-157.el7 will be installed --> Processing Dependency: glibc-common = 2.17-157.el7 for package: glibc-2.17-157.el7.i686 --->…
Ganesh
  • 505
  • 2
  • 9
  • 26
5
votes
2 answers

cpanm use custom libs and cflags

On my mac OS X machine Darwin maci 15.6.0 Darwin Kernel Version 15.6.0 I have installed libxml2 and libxslt in following custom directory /usr/local/MyLibs/libxml2-2.9.2 and libxslt /usr/local/MyLibs/libxslt-1.1.29 Now I want to use these libs to…
Recker
  • 1,915
  • 25
  • 55
5
votes
4 answers

Simplest way to get a comprehensive listing of package names available in CPAN?

Suppose that, as a private project, I have implemented a Perl package, and tested it, both formally and through extensive everyday use. I find the package useful and solid enough to warrant submitting it to CPAN. Up to this point, since the package…
kjo
  • 33,683
  • 52
  • 148
  • 265
5
votes
2 answers

Install Perl modules that require customized options via CPAN

a few times I've come across modules that require custom flags when installing. For example, now I'm stuck at Net::ZooKeeper which requires --zookeeper-include and --zookeeper-lib set. Is there a way I can set these within the cpan shell? Or do I…
zedoo
  • 10,562
  • 12
  • 44
  • 55
5
votes
1 answer

Is there a canonical, if not core, Gnu Privacy Guard CPAN module?

I'm looking for the right GPG Perl module to use for a small project. I see there are numerous competing modules providing almost identical functionality, but some have a slew of unaddressed bugs, haven't received an update in half a decade, etc. Is…
Richard Simões
  • 12,401
  • 6
  • 41
  • 50