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

Installation local perl and modules from bash

My scripts require a new version of perl, which I have installed into a local directory, to avoid corrupting the packaged version of perl that comes with Debian. I configured and installed a tarball of perl with: Configure -des…
Joel G Mathew
  • 7,561
  • 15
  • 54
  • 86
0
votes
1 answer

DBIx::Class::Schema::Loader installation fails

Well, I been trying to get this work for the past two days, re installing dependencies, updating modules, but I haven't found any solution. install command line: $> cpan DBIx::Class::Schema::Loader I get failed tests, such as: …
Mattan
  • 733
  • 7
  • 19
0
votes
3 answers

GZip compression in Perl maintains file path in gz-file on Windows

I'm trying to send some gzipped files via e-mail. The packaging and sending of the files work fine, but when I open the .gz-files on a windows machine, the archive includes the filepath (in my case /tmp/feed) for each file. On Linux the filepath is…
Vince
  • 1,517
  • 2
  • 18
  • 43
0
votes
2 answers

issue with creating perl script to imitate linux command "ifconfig"

I have an assignment in which I am to create a Perl script in Linux to imitate the command ifconfig. This command basically shows you information about your network interfaces. I have already created the program, but a few lines are giving me some…
user218001
  • 35
  • 1
  • 8
0
votes
1 answer

How to Display IFconfig information with perl program in Linux

I have an assignment where i am supposed to create a perl script in linux that will give an output similar to that of the linux command "ifconfig". I have started writing the script but I repeatedly get errors. I would like some assistance in…
user218001
  • 35
  • 1
  • 8
0
votes
1 answer

install CPAN module

I have a problem when i want to install perl module I make " cpan" to install cpan , but i get this " Terminal does not support AddHistory. Your configuration suggests that CPAN.pm should use a working directory of /home/cyrine/.cpan …
Poisson
  • 1,543
  • 6
  • 23
  • 34
0
votes
1 answer

How to count the length of output in perl

I need to be able to count the output of the program i have below, the output basically supposed to look like website-name.com - Breaking news, opinion, politics, entertainment, sports and culture. Length 89008 Lines 1517 I have tried to create it…
user218001
  • 35
  • 1
  • 8
0
votes
1 answer

How to get information from log files and add them to database table using Perl DBI sqlite

I have this assignment which requires me to take the source ip and destination port from this log file and add them to a database table i created using Perl dbi sqlite. i have tried to write a script that does that but it does not seem to work. i…
user218001
  • 35
  • 1
  • 8
0
votes
1 answer

how to incorporate perl modules into script

I am a beginner at Perl, I need to use functions from the Perl module Date::Easter in order to create a program that will take a year from user input and display the date of Easter within that year, i need to know how you would incorporate that…
user218001
  • 35
  • 1
  • 8
0
votes
2 answers

perl module for creating CLI

I wish to know is there any existing perl module which can provide the framework to create new CLI commands ? Thanks Arpit
Arpit
  • 4,259
  • 10
  • 38
  • 43
0
votes
5 answers

How to test your own Perl modules while not depending on other modules in production?

First of all, I think somebody needs to rewrite my question, I know what I am asking, not how I should ask it precisely. Assume I have some local module LOCAL::Commons and it has one subroutine called globalTrim. I am testing that subroutine below,…
Gogi
  • 1,695
  • 4
  • 23
  • 36
0
votes
1 answer

Net::SSH::Perl not working but up to date

I keep getting this when i try to run an SSH login Can't locate Net/SSH/Perl.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl …
DjTazie
  • 3
  • 3
0
votes
2 answers

Create a simple PDF file using perl

I am parsing a text file in my perl script and wanted to dumb my hash to a pdf file. I dont really need to do formatting of data, just some plain text going to be there in the pdf file. Using a heavy cpan module would be an overkill for this simple…
Govind Kailas
  • 2,645
  • 5
  • 22
  • 24
0
votes
2 answers

Add path to Global PERL @INC, System-wide, not in my scripts, but Globally. On a Mac

I'm having the following problem I don't know what introduced it but perl include path's on a Mac were always a nightmare; cpan[1]> install DateTime::Event::Recurrence Going to read '/Users/Hristo/.cpan/Metadata' Database was generated on Tue, 08…
Recct
  • 913
  • 1
  • 16
  • 40
0
votes
1 answer

Installing Event::Lib in CitrusPerl install on Mac OS X 10.7

I'm working on a Perl project that requires Event::Lib. I'm on MacOS 10.7, and am running Citrus Perl instead of the system Perl. I installed libevent from source and it compiled fine. But, when I go to install Event::Lib, I run into some…
coding_hero
  • 1,759
  • 3
  • 19
  • 34