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

How to fetch the value of a HTML tag using HTML::Tree?

Lets say i have an array which holds the contents of the body tag like shown below: print Dumper(\@array); $VAR1 = [
0
votes
1 answer

Weird JSON output for filepaths

I'm using JSON::XS, and I'm getting some weird output from an encoding of some file paths. To create the output, I just call encode_json on some data that I get from calling a dir command from perl (using ``). Which I save in an array. I end up with…
user3046061
  • 353
  • 4
  • 14
0
votes
1 answer

can't install Net::Pcap module

I am trying to install Net::pacp module ,I followed the below steps 1.$ perl Makefile.PL INC=-I/opt/pcap/include LIBS='-L/opt/pcap/lib -lpcap' which produces output as looking for -lpcap... yes checking for pcap_lib_version() in -lpcap...…
ar777
  • 5
  • 1
  • 6
0
votes
1 answer

Comparing modules available in different Strawberry Perl versions?

Background: We have recently got into some confusion, because one developer used Strawberry Perl 5.14.4.1 while the our buildserver uses 5.14.2. However, 5.14.4.1 contains more modules, so the script didn't work on the server. Fix is obvious: Use…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
0
votes
1 answer

How can I build cpan modules on 64-bit windows server 2012?

How can I build cpan modules on 64-bit windows server 2012? This is the error message: It looks like you don't have a C compiler and make utility installed. Trying to install dmake and the MinGW64 gcc compiler using the Perl Package Manager. This…
Yishu Fang
  • 9,448
  • 21
  • 65
  • 102
0
votes
2 answers

Parse::ABNF perl usage

I need to parse the SIP headers (grammar in ABNF format) and verify if my Header strings are ok or not. (Example: check strings like "Accept: application/sdp,application/3gpp-imp+xml" to provide testcase pass/fail). Currently I am trying to use…
0
votes
2 answers

Install cpan modules through perl script?

I want a perl script that will install all the cpan modules automatically when running the perl script.Can you help this?
0
votes
2 answers

shell/bash script to install cpan modules automatically

I want a shell script that will find the directory where perl is installed in local system, open that perl, and install all the CPAN modules automatically.
0
votes
1 answer

Error installing Net::LDAP on Oracle Enterprise Linux

I am trying to install the Net::LDAP module on an OEL box using CPAN, but I get the following error: [root ~]# cpan -i Net::LDAP CPAN: Storable loaded ok Going to read /root/.cpan/sources/authors/01mailrc.txt.gz Could not pipe[ --decompress…
kavuru
  • 379
  • 3
  • 4
  • 14
0
votes
1 answer

Perl CPAN Neo4p retrieve RETURN count object

I am using PERL's CPAN Neo4p module, already define a cypher query of Neo4j. But the return type is "count" function. Count for the numbers of return apgd results. The code is: my $query = REST::Neo4p::Query->new( "match…
0
votes
1 answer

cpan install switch failed

im newbie and learn Perl programming. Im confused about cpan, i know there is thousand library for support perl, but, how to install library from cpan ? im using cpan in linux, when i try to install switch, i have error message cpan[1]> install…
0
votes
1 answer

CPAN install module failed: don't know what it is

I am installing this module in Ubuntu: http://metacpan.org/pod/CatalystX::DynamicComponent::ModelsFromConfig with bash command: sudo cpan CatalystX::DynamicComponent::ModelsFromConfig However I always get this message: Warning: Cannot install…
wing_hk
  • 79
  • 3
  • 7
0
votes
1 answer

Error install IO::Pty perl

install IO::Pty cpan Tty.xs:54:23: sys/ioctl.h: No such file or directory Tty.xs: In function `make_safe_fd': Tty.xs:225: error: `F_DUPFD' undeclared (first use in this function) Tty.xs:225: error: (Each undeclared identifier is reported only…
0
votes
2 answers

Why can't my Perl program find Array::Utils?

use Array::Utils qw(:all);# it showing error my @array1 = (1, 2, 3, 5, 7, 23, 8, 14, 95, 19); my @array2 = (3, 14, 6, 22, 88, 19, 100); my@isect = intersect(@array1,@array2); print @isect,$/; The use Array::Utils qw(:all);# it showing error.Can't…
user3138547
  • 11
  • 1
  • 6
0
votes
3 answers

How to install a single Perl Crypt::OpenSSL::AES for use by different linux environments

I have a sticky problem that I am not quite sure how to solve. The situation is as follows: We have a common 32bit perl 5.10.0 It is used by both 32bit and 64bit linux machines Now the problem is that I need to install Crypt::OpenSSL::AES module…
GKK
  • 374
  • 3
  • 12