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
7
votes
1 answer

How should I handle Perl module updates when maintaining docker images?

I'm working on building a docker image to be able to run all of our Perl applications. The applications require hundreds of CPAN modules to be installed. The full build of the docker image takes about an hour to complete. After doing the initial…
user1751825
  • 4,029
  • 1
  • 28
  • 58
7
votes
3 answers

Can't locate XML/DOM.pm in @INC (you may need to install the XML::DOM module)

I am new user for the Perl language where executing a Perl script comparison based on ROUGE tool. I didn't get my result on a specific dataset. Please suggest what to do to avoid such type of error. I am getting this error when I execute…
Tushar Hanwate
  • 121
  • 1
  • 1
  • 6
7
votes
1 answer

I upgraded SVN::Core via CPAN and now git-svn doesn't recognise http:// URLs

I was trying to update version of Subversion used by git svn and so I ran the following command. > cpan SVN::Core It appeared to work; however, now git svn doesn't recognise HTTP URLs! > git svn rebase Bad URL passed to RA layer: Unrecognized URL…
Sam Minnée
  • 724
  • 5
  • 14
7
votes
2 answers

Sort strings with a specific letter order with Perl

I'm trying to sort lists of names with Perl with a specific letter order to perform some special features. The sorting would be working the same way as sort { $a cmp $b } but with a different succession of letters. For example, ordering with the…
JeanJouX
  • 2,555
  • 1
  • 25
  • 37
7
votes
2 answers

Unable to install any perl modules because it can't location strict.pm

Hello StackOverflow Community, I am trying to install a perl module, IO::All. But every time I use CPAN to install many perl modules (including if I run from within cpan "install Build::CPAN") it fails with Can't locate strict.pm in @INC (@INC…
Asaf
  • 815
  • 1
  • 9
  • 25
7
votes
1 answer

Is there a centralized Java libraries repository such like CPAN for Perl?

People build repositories of software (like these that contains GNU/Linux packages) or code, documentation, all centralized in one place. All modules/libraries installations can be done through it. Re-using code is a good thing, and it helps…
smonff
  • 3,399
  • 3
  • 36
  • 46
7
votes
5 answers

PERL_LWP_SSL_VERIFY_HOSTNAME setting to 0 is not working

Am running into an issue connecting on a Ubuntu machine while my other machine works fine. The difference between both is the Ubuntu version and the SSLeay version but i can't narrow down what the issue is. I already did the following: a) add the…
user2601110
  • 71
  • 1
  • 1
  • 3
7
votes
3 answers

How to manage the installation of modules used by an open source Perl project?

I work on a small open-source Perl project with Catalyst, Open Street Map and dozens of modules. I try to use as many modules found on the CPAN as I can because my aim is not to reinvent the wheel. All this stuff has been installed through cpanm and…
smonff
  • 3,399
  • 3
  • 36
  • 46
6
votes
3 answers

How can I install script distributions from CPAN?

I tried: cpan> i /xls2csv/ No objects found of any type for argument /xls2csv/ cpan> install xls2csv Warning: Cannot install xls2csv, don't know what it is. Try the command i /xls2csv/ to find objects with matching identifiers. I haven't had any…
JustADude
  • 2,619
  • 7
  • 31
  • 45
6
votes
2 answers

What means "not running under some shell" in Perl scripts?

In many perl scripts (especially in famous CPAN distros) I find the following piece of code: eval 'exec /usr/bin/perl -w -S $0 ${1+"$@"}' if 0; # not running under some shell I was wondering what it is for? Thanks.
Беров
  • 1,383
  • 10
  • 22
6
votes
1 answer

How do I use cpanminus with a local CPAN::Mini?

I've created my own local copy of CPAN with minicpan and managed to reconfigure cpan to use it - Fantastic! ..but how would I go about using it with cpanminus?
Hugh
  • 1,431
  • 2
  • 16
  • 30
6
votes
3 answers

Perl multi-dimensional table with headers

I'm trying to implement a multi-dimensional table with headers. Here's an example for 2D: < dimension1 > /\ 'column0' 'column1' dimension0 'row0' data00 data10 \/ 'row1' data01 …
Giovanni Funchal
  • 8,934
  • 13
  • 61
  • 110
6
votes
3 answers

Is there a Perl module to monitor an email queue?

I'm working on an issue tracking system and would like the application to handle email replies. That is, I would like a script that can monitor an email queue and perform some action based on the email contents. It should then be able to delete…
James van Dyke
  • 4,790
  • 3
  • 28
  • 25
6
votes
2 answers

Is there a CPAN Perl module to find total/used/free memory on a host (without running command line through a system() call)?

Is there a CPAN Perl module which provides total/used/free memory (like vmstat does) on a host without running a command line through a system() call to get the info? Ideally it should be cross-platform (Linux and Solaris) though please provide…
DVK
  • 126,886
  • 32
  • 213
  • 327
6
votes
6 answers

CPAN giving all sorts of errors on ubuntu

I am just trying to run a simple perl program to import data from xml and export it to database. Use Mysql; did not work, so I used DBD::mysql instead after failing to get Mysql.pm from cpan. However, I am unable to install anything. I am trying to…
roymustang86
  • 8,054
  • 22
  • 70
  • 101