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

.cpan/Metadata:how to edit to reinstall a model

I use cpan to install Carton. When I run this command first, the output is URL can't found. When I run this command second, the output is follows: Going to read '/home/hengaini/.cpan/Metadata' Warning: Cannot install Carton, don't know what it…
Thai Heng
  • 152
  • 1
  • 11
-1
votes
2 answers

perl -MCPAN Frontier

I have Debian 6. I want install script PHP with perl demon. I install perl etc. apt-get install perl build-essential In demon.pl I have lines: use Frontier::Daemon::Forking; use Crypt::XXTEA; use Cfg::Config; Blockquote use…
Piotr
  • 1
-2
votes
1 answer

cpanm doesn't install AI::MXNet

How do I install all the dependencies automatically under cygwin, Windows 8 for this command: cpanm install AI::MXNet Right now it gives the following error Building and testing AI-NNVMCAPI-1.4 ... FAIL ! Installing AI::NNVMCAPI failed. See…
user2925716
  • 949
  • 1
  • 6
  • 13
-2
votes
1 answer

Install perlcritic on macOS Ventura

I'm on macOS Ventura 13.3.1 and I'm trying to get perlcritic working. perl --version Gives me: This is perl 5, version 36, subversion 0 (v5.36.0) built for darwin-thread-multi-2level ... When I type: cpan Perl::Critic I get: Loading internal…
baduker
  • 19,152
  • 9
  • 33
  • 56
-2
votes
2 answers

The problem: found a tab character that violate intendation

./run-bot Running bot 22496 Error parsing ./shittybot.yml: YAML::XS::Load Error: The problem: found a tab character that violate intendation was found at /usr/local/lib/perl5/site_perl/5.10.1/Config/Any.pm line 201 …
DanielBryan
  • 131
  • 2
  • 2
  • 5
-2
votes
3 answers

Cant install Net::SSH2 perl module

I'm trying to install a perl module: Net::SSH2 with cpan but doesn't actually works. cpan -f install Net::SSH2 Output: CPAN: Storable loaded ok (v2.20) Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz' …
Jobine23
  • 129
  • 9
-2
votes
1 answer

What for there is file .exists in Perl installed modules' folders?

I have installed CPAN modules some time ago. After I open a folder of module Catalyst-Plugin-Browser, there is a file .exists. What for is it there?
osiv
  • 77
  • 5
-2
votes
1 answer

Can't locate File/Find/Rule.pm in @INC

!#/usr/bin/perl -w use strict; use warnings; use File::Find::Rule; my $finder=File::Find::Rule->directory->in($directory); Warning is Can't locate File/Find/Rule.pm in @INC (@INC contains:…
Navaneeth Cp
  • 31
  • 3
  • 9
-2
votes
2 answers

Creating Table in database from Perl using SQLite3

I'm having trouble creating a table in a database I created with Perl using dbi sqlite3. Using the code I have below, I want the table to contain port-probes, one line for each source ip and port. I don't know if im doing it properly, the code below…
user218001
  • 35
  • 1
  • 8
-2
votes
1 answer

Writing a perl module of the most used util rutines. Are you sitting with a gem function?

Problem: I am using a lot of CPAN modules and hard-coded perl functions in many different scripts (a lot of which is duplicated), and I want to make my code base DRY (don't repeat yourself) by extracting all of the common code (and maybe even by…
Gogi
  • 1,695
  • 4
  • 23
  • 36
-2
votes
1 answer

How to install perl module within script

How can I install a perl module from within a script? I am using a program called Discovery Studio Visualizer which has a scripting interface built-in and I have no way to install Win32::GUI() using standard methods. The reason I want to do this is…
user1876508
  • 12,864
  • 21
  • 68
  • 105
-3
votes
1 answer

error while installing DBD::oracle in windows10 `perl -MCPAN -e "install DBD::Oracle"

Fetching with LWP:http://cpan.strawberryperl.com/authors/01mailrc.txt.gz LWP failed with code[470] message[status code 470]Warning: no success downloading 'C:\STRAWB~1\cpan\sources\authors\01mailrc.txt.gz.tmp16388.Giving up on it. As a last resort…
-3
votes
1 answer

How to get all available perl modules list

How can i get only the list of all perl modules with short description of what they will do? So that it will help learners like me to use modules as per our need immediately, rather that searching it for long time.
sam
  • 73
  • 7
-3
votes
1 answer

how to extract function definition from c source file

I am working on a perl script that prints out the entire function onto std out given the source file name and function name. using a regex might not be feasible as i have multiline function prototypes. any suggestion on whether there are c parser…
MSK
  • 175
  • 1
  • 10
-3
votes
2 answers

reading data from an excel sheet in perl

I have a hash of result messages. Each message has 4-5 different parameters. I want to match parameter values with the values stored in an excel sheet. If they match its pass or fail Can you help me how to read from an excel sheet and match it line…
1 2 3
80
81