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

Can I retest all installed CPAN modules?

If a module A relies on module B and module B is upgraded, A may break due to changes. My idea is to retest both A and B after upgrading B. I think the easiest way is just to retest everything that can be retested: download every installed module…
nponeccop
  • 13,527
  • 1
  • 44
  • 106
8
votes
2 answers

CPAN first launch (Proxy Configuration)

i need to run cpan trough proxy but when i try to configure i got errors and cant enter to cpan for the first time root@srv-linux01:~# cpan CPAN.pm requires configuration, but most of it can be done automatically. If you answer 'no' below, you will…
8
votes
2 answers

How can I get App::cpanminus to work?

I have just installed a fresh copy of ubuntu 10.10. I installed perl 5.12.2 following brian d foy's recommended outline and then installed cpanminus by invoking curl -L http://cpanmin.us | perl5.12.2 - --sudo App::cpanminus. Now, cpan5.12.2 works…
David B
  • 29,258
  • 50
  • 133
  • 186
8
votes
4 answers

Are there CPAN modules that will help me parse an RSS or ATOM feed in Perl?

I need code in Perl for requesting and parsing ATOM and RSS feeds. Is there a CPAN module(s) for that?
user47145
  • 1,775
  • 2
  • 13
  • 8
8
votes
3 answers

Why can't SGML::Parser::OpenSP find the symbol __ZTI15SGMLApplication?

I'm trying to "install SGML::Parser::OpenSP" from the cpan shell, but it fails on the first "make test". I also get the same error if I go into the build directory and run make test. I believe this bit of the output below is the relevant part. Note…
Josh
8
votes
2 answers

CPANM, "Couldn't find module or a distribution Archive::zip"

I am trying to write something in Perl that needs several modules, however this is my first time using Perl and I cannot seem to install one specific module I need, Archive::zip. I am using perlbrew and use the following command to attempt to…
DoolAy
  • 247
  • 3
  • 9
8
votes
6 answers

Which package from CPAN should I use to send mail?

Which package from CPAN should I use to send mail? Sometime the timtowtdi approach is very tiring. For me, especially when it comes to package selection. So all I want is to send email, potentially HTML emails. Between Mail-Sendmail, Mail-Sender,…
Uri London
  • 10,631
  • 5
  • 51
  • 81
8
votes
4 answers

Moving / cloning a perlbrew installed perl plus all the additional cpan modules

I am using perlbrew. I have installed lots of cpan modules under perlbrew perl-5.20.2. Is there a way (or what is the best way) to do a tarball installation of my perl-5.20.2 plus all the CPAN modules that I have installed under perlbrew so that I…
Hamster
  • 680
  • 7
  • 23
8
votes
5 answers

Error while installing DBD::Oracle

I am trying to install Perl module DBD::Oracle on my RHEL6.1 server. While doing so, I followed following steps: Installation of following…
Mandar Shinde
  • 1,735
  • 4
  • 20
  • 28
8
votes
3 answers

How can I represent a file system's symbolic links in a Perl hash?

On Server Fault, How to list symbolic link chains? (not my question) talks about listing all the symbolic links and following them. To make this doable, let's consider a single directory at first. I want to write a short utility that does this. It…
Paul
  • 26,170
  • 12
  • 85
  • 119
8
votes
2 answers

perl: new cpan module maker? local configuration text files and executables, too?

I am writing a perl program that I want to share with others, eventually via cpan. it's getting to the point where I should start thinking about this on a bigger scale. a decade ago, I used the h2xs package maker once. is this still the most…
ivo Welch
  • 2,427
  • 2
  • 23
  • 31
8
votes
3 answers

How do I write an HTTP server in Perl?

Is there a webserver or HTTP server module in the Perl standard library or in CPAN or elsewhere? I guess I'm looking for the equivalent of Python 3's http.server module. Thanks!
zaphod
  • 4,561
  • 3
  • 25
  • 26
8
votes
4 answers

Install Perl module with assume yes for given options non-interactively

Normally in linux Debian we do sth like this to install a package non-interactively e.g sudo apt-get install -y Package_x_z #[-y --assume-yes] How we can do the same while installing a perl module e.g sudo perl -MCPAN -e 'install DBI'
sakhunzai
  • 13,900
  • 23
  • 98
  • 159
8
votes
1 answer

Windows script auto-update replacing current executable with exec?

I'm trying to build a quick auto-updater in Perl Windows. I've noticed that when I call cpanp to install the update of the package it fails to install a new version of the script because the script is currently running. I'm calling cpanp with…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
8
votes
2 answers

How can I install or upgrade a CPAN module that is in the latest Perl, without installing the new Perl?

I'd like to install a Perl module (in this case, FindBin), but since it is included in the Perl 5.10.1 distribution, cpan wants to install Perl 5.10 for me. Is there a way of installing just the module via cpan? The only option that I can see is…
Ether
  • 53,118
  • 13
  • 86
  • 159