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

Perl Module not available after cpan Installation

I'm running Ubuntu 14. I tried installing Tk module via cpan. It appears to have installed correctly, however when I tried to use Tk; in my script it still says its unavailable. Is there anything I can do, perhaps add it to @INC somehow? thanks!…
Ahdee
  • 4,679
  • 4
  • 34
  • 58
-1
votes
1 answer

Can't install perl package Games::Irrlicht - fatal error

I'm trying to install the CPAN module Games::Irrlicht to deal with graphics. Some file isn't getting downloaded properly or something, resulting in a fatal error. What's wrong? My terminal output: cpan[1]> install Games::Irrlicht Reading…
Menasheh
  • 3,560
  • 3
  • 33
  • 48
-1
votes
1 answer

Higher level libraries for Sybase::DBLib?

Has anyone written something similar to SQL::Abstract for Sybase::DBLib? in particular, I'm interested in being able to insert a hash of values into a table without manually forming the sql query myself. A big issue in working with sybperl is that…
Terrence Brannon
  • 4,760
  • 7
  • 42
  • 61
-1
votes
1 answer

HTML::TokeParser not able to install from CPAN

I am not able to install HTML::TokeParser this package from CPAN. cpan[6]> install HTML::TokeParser Running install for module 'HTML::TokeParser' Running make for G/GA/GAAS/HTML-Parser-3.71.tar.gz Has already been unwrapped into…
Pankaj Kumar
  • 147
  • 11
-1
votes
1 answer

Hashes as Keys in Perl

I am working on a requirement in which keys of hash are hash. I came across the cpan modue Tie::RefHash which can do the job, but somehow it is not working for nested hashes even though I am using Tie::RefHash::Nestable. my %hash_arg = (); tie…
Sharad
  • 1,867
  • 14
  • 33
-1
votes
1 answer

Devel::Cover report Branch and condition Coverage shows n/a in the report ??

I am generating the coverage for some .pm and mason file using apache by using Devel::Cover But for the mason file the coverage for branch and condition is showing n/a while for the same mason file statement coverage is coming 100%. Please Help.
-1
votes
1 answer

I am unable to ping to the manual proxy from a node

I am using a HPC system with a master node and 8 other compute nodes. I have to download a LibXML perl module using CPAN on each of the compute nodes. I am able to ping the proxy from the master node. But, I am unable to do it from the compute…
-1
votes
3 answers

DBD::Oracle installation causing error

I want to connect to an Oracle Database through Perl. For this, I'm trying to install DBD::Oracle from CPAN by using the following command: [root@localhost Admin]# cpan DBD::Oracle While running above command on my Linux terminal, I'm getting the…
Ram
  • 147
  • 3
  • 6
  • 16
-1
votes
3 answers

CPAN module in Perl scripting language

I'm new to Perl scripting language(beginner). What is the use of CPAN module,why we need this module? please let me know. How install in CPAN in Linux(CentOS).
ram12393
  • 1,284
  • 3
  • 14
  • 29
-1
votes
1 answer

How can I enable/disable print output for a given perl script?

So basically what I mean is: is there a way for me to disable the function print's output when invoking a perl script at the command line? If not available in the base implementation of perl then maybe CPAN? Things that I am aware of: perl has a…
user3046061
  • 353
  • 4
  • 14
-1
votes
2 answers

How to install the cpan modules

How to install the perl facebook API cpan modules and dependencies in a single command www::Facebook:api
-1
votes
2 answers

Module Installation errors when trying to use local::lib and CPAN

I am trying to use local::lib as I don’t have admin rights on the system and I want to download and install a local library. I ran following: perl Makefile.PL --bootstrap make test && make install echo 'eval $(perl -I$HOME/perl5/lib/perl5…
-1
votes
1 answer

Where can I get a Xerces-C compatible with XML::XERCES 2.7.0?

This question is in continuation of this post, I have tried installing Xerces-C but the thing is Xerces-C version is 2.8.0 and 3.0.0 and XML::XERCES latest version is 2.7.0 and so am getting following error message: Update2: Here is the error which…
Rachel
  • 100,387
  • 116
  • 269
  • 365
-1
votes
1 answer

Retrieve a value from object in perl

I am getting $VAR1 = bless( \*{'Fh::fh00001Screenshot.png'}, 'Fh' ); in a variable. But I need to retrieve fh00001Screenshot.png from it. How can I get it?
Hafsal
  • 81
  • 2
  • 7
-1
votes
3 answers

Cannot install perl module Apache2::Const in ubuntu

I am having problem with installing perl module Apache2::Const. When i am trying to install it using cpan.pm it shows the following error Warning: Cannot install Apache2::Const, don't know what it is. I am using Ubuntu 12.04, Apache/2.2.22 ,Perl…
Hafsal
  • 81
  • 2
  • 7