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
19
votes
3 answers

I installed a module successfully with CPAN, but perl can't find it. Why?

I installed a CPAN module like this: cpan Acme According to the output, the installation was successful: Running install for module 'Acme' ... All tests successful. Files=2, Tests=3, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.04 cusr 0.00 csys = …
ThisSuitIsBlackNot
  • 23,492
  • 9
  • 63
  • 110
19
votes
4 answers

Is there a working CPAN/CPAN6 like project for Perl 6?

I'm playing around with Rakudo Perl 6 lately and was searching for a project similar to CPAN. I found CPAN 6, but I think there is no Perl 6 code yet. So I'm looking for some alternative that does not necessarily aim to be a long term solution, but…
matthias krull
  • 4,389
  • 3
  • 34
  • 54
18
votes
8 answers

When should I use Perl CGI instead of PHP (or vice versa)?

For hobby purposes, I have a shared space on a hosting server that is providing, as many of them are, both PHP and Perl CGI. I have read on several places that CGI scripts are obsolete now, I think mainly for performance issues (like Is PHP or…
Peter
  • 47,963
  • 46
  • 132
  • 181
18
votes
1 answer

How do I release a Perl module to CPAN?

I need to create a CPAN module, but I don't know where to start or how to do that. I've already written my modules in Perl, but I don't know how to continue. Could anyone help?
Zsolt
  • 304
  • 2
  • 8
18
votes
3 answers

Error installing in Net::SSLeay

Here is the stdout for installation: CPAN Terminal> i Net::SSLeay Installing Net::SSLeay (1.58) Running [/usr/bin/perl /usr/bin/cpanp-run-perl /home/greymonkey/.cpanplus/5.14.2/build/Net-SSLeay-1.58/Makefile.PL INSTALLDIRS=site]... *** Found…
Zhengyang Liu
  • 807
  • 1
  • 6
  • 14
17
votes
2 answers

Can a Perl script install its own CPAN dependencies?

I have a Perl script that has two dependencies that exist in CPAN. What I'd like to do is have the script itself prompt the user to install the necessary dependencies so the script will run properly. If the user needs to enter in some kind of…
fbrereto
  • 35,429
  • 19
  • 126
  • 178
17
votes
4 answers

How do I install a module? Strawberry Perl issues

I am trying to install a Perl module within Strawberry Perl on Windows 7. I'm running the below command and am getting a slew of messages I don't understand. It looks like I am getting 500 errors, as though the page isn't reachable. However, when I…
Brian
  • 1,128
  • 7
  • 18
  • 27
17
votes
2 answers

How to update CPAN perl module

I'm trying to install some perl module but everytime this message is shown New CPAN.pm version (v2.00) available. [Currently running version is v1.960001] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and…
TheLazyFox
  • 1,065
  • 3
  • 11
  • 27
17
votes
1 answer

Nmap::Parser, Segmentation fault on large files

I would like to use Nmap::Parser to convert the XML output of an nmap scan into a CSV file and I am already having problems at the very beginning. Parsing small TCP/UDP scans work fine, but when I try to convert a larger file (e.g., 20 MB) ,…
rhe24
  • 171
  • 2
17
votes
4 answers

Using CPAN with a proxy failing after o conf init /proxy/

I have a Linux box in a corporate environment in which web access is gated through a proxy which requires authentication. During a first run of cpan it auto configures everything that it normally does: Autoconfigured everything but 'urllist'. …
MichaelRpdx
  • 233
  • 1
  • 3
  • 11
16
votes
2 answers

How to rebuild/reinstall dependencies of an up to date CPAN module?

I need to reinstall the dependencies of a CPAN module. Some dependencies which are usually installed are missing but the package itself is up to date to cpan. So how can i still install the dependencies?
matthias krull
  • 4,389
  • 3
  • 34
  • 54
16
votes
11 answers

Which Perl database interface should I use?

Is CPAN DBI the best database interface to use in Perl for general database use? Are there some better options?
David
  • 14,047
  • 24
  • 80
  • 101
16
votes
11 answers

What should I teach a beginning Perl programmer?

I am going to spend 30 minutes teaching Perl to an experienced programmer. The best way to learn Perl is by writing code. In addition to CPAN, what would you show a programmer so they would understand the expressiveness of Perl, the amount of…
anon
16
votes
3 answers

How to fix: 'YAML' not installed when installing XML::Simple?

I'm trying to install XML::Simple module however I get the following everytime. cpan install XML::Simple Going to read '/root/.cpan/Metadata' Database was generated on Wed, 12 Mar 2014 09:17:02 GMT Running install for module 'XML::Simple' Running…
Deano
  • 11,582
  • 18
  • 69
  • 119
16
votes
7 answers

Arrow up and down does not work any more in Perl debugger and CPAN client

I used to use Active Perl on my Mac OS X (v 10.7.5) and then I switched to the one provided via mac ports (v 5.12.4). Now when I run the CPAN client or the perl debugger, I cannot access the history using ArrowUp and ArrowDown, what is shown at the…
agaved
  • 258
  • 2
  • 9
1 2
3
80 81