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
15
votes
2 answers

How can I use Perl 5 modules from Perl 6?

Is the a way to use Perl 5 modules from CPAN from Rakudo Perl 6? For example, how can I use the venerable Perl 5 module, CGI, which hasn't been ported yet, in Perl 6. Update: And what this funky code from some early Perl 6 module: use…
GeneQ
  • 7,485
  • 6
  • 37
  • 53
15
votes
6 answers

What is the best Perl module to use for creating a .pdf from scratch?

There are quite a number of modules on CPAN relating to the creation and manipulation of .pdf files, and I'm hoping this community can save me some time going down blind alleys. I am looking to create .pdf files from scratch, with only simple…
Marcus
  • 5,772
  • 8
  • 35
  • 60
15
votes
2 answers

Perl Module install error CPAN

When i try to install Spreadsheet::WriteExcel perl module using cpan in ubuntu 12.04, i get this following error. > Can't exec "/usr/bin/make": No such file or directory at > /usr/share/perl/5.14/CPAN/Distribution.pm line 2078. >…
Saravanan
  • 604
  • 1
  • 8
  • 20
15
votes
5 answers

How to upgrade perl modules that install from CPAN?

In cpan shell, only /regexp/ or all modules can be upgrade, if I want to upgrade modules only installed by CPAN,how to do?
zhangailin
  • 926
  • 2
  • 10
  • 20
14
votes
6 answers

How to install XML::Parser without expat-devel?

XML::Parser fails to build on a quite fresh 64-bit Debian box. After issuing cpan XML::Parser, cpan fails with lots of errors about Expat.c and Expat.xs: [...] Expat.xs:2182: error: ‘CallbackVector’ has no member named ‘skip_until’ Expat.c: In…
Alois Mahdal
  • 10,763
  • 7
  • 51
  • 69
14
votes
3 answers

How can I update someone else's module on CPAN?

I downloaded some module from CPAN and added to it extra functionality. Could I post the newest module on the CPAN? If yes, how should I do this? Is it possible at all? Should I contact the person who wrote the original module? Could someone…
smith
  • 3,232
  • 26
  • 55
14
votes
5 answers

error running cpan the first time

I'm wondering if anyone can help me. I installed CPAN.pm via command line and then tried installing a module via CPAN. But I encountered an error: Can't call method "http" on unblessed reference at /usr/lib/perl5/5.10.0/CPAN/FirstTime.pm line 1866.
icasimpan
  • 1,253
  • 3
  • 16
  • 28
14
votes
1 answer

How to make "use My::defaults" with modern perl & utf8 defaults?

I want make a module for my own "default use", e.g.: use My::perldefs; with the following content (mostly based on tchrist's post.) use 5.014; use strict; use features qw(switch say state); no warnings; use warnings qw(FATAL closed threads…
clt60
  • 62,119
  • 17
  • 107
  • 194
14
votes
1 answer

How to test/classify CPAN modules for utf8 correctness

Here is an excellent question and the wonderful tchrist's answer with 7+24+52 advices&comments how to make an perl program utf8 safe. But here is 19k CPAN modules. What is possible to do for differentiating "good" and "bad" ones? (from the utf8's…
clt60
  • 62,119
  • 17
  • 107
  • 194
14
votes
1 answer

trying to use CPAN with my MINGW version for Git Bash

I am trying to use use cpan on my windows install version of Git Bash git version 2.18.0.windows.1. I installed an Active Perl version version 24, subversion 3 (v5.24.3) built for MSWin32-x64-multi-thread and it is located in…
Brian Wiley
  • 485
  • 2
  • 11
  • 21
14
votes
4 answers

What's the best library for parsing RSS/Atom in Perl?

I notice that XML::RSS::Parser hasn't been updated since 2005. Is this still the recommended library for parsing RSS or Atom? Is there a better one or a better way?
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
14
votes
4 answers

Install Perl modules with lots of dependencies on a machine without CPAN network access

I am trying to install the DateTime machine on a Linux server. Unfortunately, this Linux server has some restricted network access policy that prevents me from using the CPAN shell directly to download content, or installing cpanminus. Changing…
frank
  • 1,283
  • 1
  • 19
  • 39
13
votes
2 answers

Where does CPAN install Perl modules in OS X?

Just curious where CPAN installs all the Perl modules by default in OS X.
GeneQ
  • 7,485
  • 6
  • 37
  • 53
13
votes
3 answers

How do I tell CPAN.pm where to get modules?

Here is the complete install command to CPAN and the output: sudo perl -MCPAN -e "install Bundle::CPAN" CPAN: Storable loaded ok (v2.13) Going to read /home/delgreco/.cpan/Metadata Database was generated on Mon, 08 Dec 2008 03:27:10 GMT CPAN:…
Marcus
  • 5,772
  • 8
  • 35
  • 60
13
votes
8 answers

How can I determine CPAN dependencies before I deploy a Perl project?

Does anyone have any suggestions for a good approach to finding all the CPAN dependencies that might have arisen in a bespoke development project. As tends to be the case your local development environment rarely matches your live one and as you…
Vagnerr
  • 2,977
  • 3
  • 33
  • 46