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

image::magick not installing with cpan in perl v5.14.2 from dwimperl

I am attempting to rebuild my development/test environment on a new laptop running windows7 32 bit. imageMagick is one of the modules I had installed in an (ancient) version on my old laptop. I have downloaded and installed perl from dwimperl, which…
dan baker
  • 1
  • 2
0
votes
1 answer

What does @data actually contain in PDF::Report::Table $table_write->addTable(@data);?

I think I've got the gist of creating a table using Perl's PDF::Report and PDF::Report::Table, but am having difficulty seeing what the 2-dimensional array @data would look like. The documentation says it's a 2-dimensional array, but the example on…
octopusgrabbus
  • 10,555
  • 15
  • 68
  • 131
0
votes
1 answer

How to exclude .cpan folder from rsync?

I use rsync to backup the home directory (ext4) of my Ubuntu installation. I use the following command to copy files and folders to a remote server (ext4). $ rsync -rt --delete --delete-excluded --links \ --exclude-from…
JJD
  • 50,076
  • 60
  • 203
  • 339
0
votes
2 answers

CPAN error message

I was trying to use my CPAN, but when I typed in the following command. The errors occurred. A similar question was asked in this forum(install CPAN module), I tried that solution, but it did not work for me. I am wondering if anyone can drop a…
user2489612
  • 73
  • 1
  • 9
0
votes
0 answers

Replace parts of a paragraph

I'm currently trying to insert a paragraph into an Open Office Writer document from a perl script, then search through that paragraph for a particular phrase, and replace it with another, using setTextSpan(). I can insert the paragraph easily, just…
Dave Moore
  • 1,432
  • 4
  • 12
  • 17
0
votes
1 answer

Extract specific css classes in a file

I'm trying to use a file all.css containing some classes and want to get a file green.css containing only green classes. I'm using perl CSS module, any suggestions on how can i use it to search for lines that contain .green and end with { and then…
Mouna Cheikhna
  • 38,870
  • 10
  • 48
  • 69
0
votes
1 answer

How to use cpanspec to include all dependent packages

I wanted to build an RPM from cpan library. I used below command to build the RPM. It says few other packages are needed. When I try to install other packages the tail continues. Is there a smart way to that I can ask the cpanspec to include all the…
Aram
  • 952
  • 1
  • 8
  • 30
0
votes
1 answer

mod_perl and how to install missing libraries

i need your help because I need to migrate a Perl application, which appears to be based on something like a CMS called "Profile Manager Premium 4.0". The problem is, i'm trying to use an .htaccess file in order to configure the mod_perl module…
digfish
  • 316
  • 2
  • 11
0
votes
1 answer

Installing modules on Active Perl 5.6 on Windows

I am using ActivePerl 5.6.1 Build 635 (let's assume that I absolutely have to work with this version and cannot update to a newer one) on a Windows XP machine. The ppm version with this version of Perl is 2.2.0 and is not the same as the ppm for…
APratik
  • 27
  • 6
0
votes
0 answers

Where to put generating scripts in a CPAN module?

I've built a CPAN module skeleton using module-builder, which means that I've got this structure: Changes ignore.txt lib/ Makefile.PL MANIFEST README t/ I've got both lib/My/Module.pm and lib/My/Module/Data.pm. Data.pm contains a hash generated…
Andreas
  • 7,470
  • 10
  • 51
  • 73
0
votes
3 answers

How can I disable terminal-polling for cpan used from crontab?

I'd like to have all the installed CPAN modules updated automatically every night, so I've placed the following command in the crontab: @daily cpan -i $(cpanp -o | perl -lane 'print $F[3]') However, whenever this is run I get the following error…
Kiffin
  • 1,048
  • 1
  • 15
  • 21
0
votes
1 answer

Perl cpan: error installing DateTime, CHECKSUM download failure

I am running Perl 5.10 on a shared Red Hat Linux 6.2 server. I have asked the root user of the machine to install the Perl DateTime module for me, using the following commands: perl -MCPAN -e shell cpan> install DateTime We were able to…
frank
  • 1,283
  • 1
  • 19
  • 39
0
votes
3 answers

CPAN.pm change .gz path

I am trying to change the CPAN.pm to include the destination of .gz file in the CPAN.pm but as I don't have the "sudo" rights hence its denying my access. My question is how to uninstall the CPAN if it's possible and install again. Is there any…
LonelySoul
  • 1,212
  • 5
  • 18
  • 45
0
votes
1 answer

I installed a perl module via cpan. But how do i use it?

After lot's of issues I managed to get cpan to work in cygwin. I did: cpan[2]> i Log::Log4perl and it seemed to work. I.e. it downloaded something: cpan[2]> i Log::Log4perl Fetching with LWP: …
Cratylus
  • 52,998
  • 69
  • 209
  • 339
0
votes
1 answer

Is there a perl module to convert .bin file to .pem file

I want to convent my certificates from .bin file format to .pem file format, is there a perl module that I can use. Thanks.
PMat
  • 2,039
  • 2
  • 29
  • 46