cpan

How do I install Perl's SVN::Client?

不打扰是莪最后的温柔 提交于 2019-11-30 11:50:05
I want to use the SVN::Client cpan module to check out code from a repository. But how to install and use this module? The documentation is kind of no existing. I have tried install the Alien::SVN module both through cpan and build it myself. And it seems to install okay. No error messages, and when i go into cpan again and do the following it states that the Alien::SVN module is installed. cpan> install Alien::SVN Alien::SVN is up to date. Here is my class that uses the SVN::Client: use strict; use warnings; use Alien::SVN; use SVN::Client; sub new { my $self = { localpath => '' }; bless(

What is the difference between the core, vendor and site locations in Perl?

梦想的初衷 提交于 2019-11-30 09:35:48
I recently ran into some trouble installing some modules and discovered to my surprise that many of the modules that had been installed, have duplicated installations and versions. Trying to track where stuff goes in a standard (if there is such a thing) installation using cpanm , I found the following results very confusing. The reports show these locations: Using cpan -V : # cpan -V /usr/bin/cpan script version 1.672, CPAN.pm version 2.22 -------------------------------------------------- Checking install dirs... Checking core + /usr/share/perl5/5.26 + /usr/lib/perl5/5.26/x86_64-cygwin

How can I install or upgrade a CPAN module that is in the latest Perl, without installing the new Perl?

人走茶凉 提交于 2019-11-30 09:00:40
问题 I'd like to install a Perl module (in this case, FindBin), but since it is included in the Perl 5.10.1 distribution, cpan wants to install Perl 5.10 for me. Is there a way of installing just the module via cpan ? The only option that I can see is installing directly from source, which seems a bit crude as there is no separate package (for example, Makefile.PL , etc.), just the bare .pm file. Since this is a small module that only has the one file, it's doable in this case, but what if I

What is the best Perl module to use for creating a .pdf from scratch?

泪湿孤枕 提交于 2019-11-30 06:24:47
问题 There are quite a number of modules on CPAN relating to the creation and manipulation of .pdf files, and I'm hoping this community can save me some time going down blind alleys. I am looking to create .pdf files from scratch, with only simple formatting such as bold/italic and left/right/center justify. Being able to use a template file would nice, from an MVC perspective, but if the best module doesn't support that, I'm ok. I want the best module for my narrow problem set. Edit: let's add

Which CPAN module would you recommend for turning HTML into plain text?

老子叫甜甜 提交于 2019-11-30 05:44:55
问题 Which CPAN module would you recommend for turning HTML into formatted plain text? One strict requirement is that the module must handle Unicode characters. 回答1: I like HTML::FormatText and HTML::FormatText::WithLinks 回答2: See the example script htext that comes with HTML::Parser. 来源: https://stackoverflow.com/questions/1934638/which-cpan-module-would-you-recommend-for-turning-html-into-plain-text

What are some code coverage tools for Perl?

*爱你&永不变心* 提交于 2019-11-30 04:49:36
Are there any good (and preferably free) code coverage tools out there for Perl? moritz Yes, Devel::Cover is the way to go. If you develop a module, and use Module::Build to manage the installation, you even have a testcover target: perl Build.PL ./Build testcover That runs the whole test suite, and makes a combined coverage report in nice HTML, where you can browse through your modules and watch their coverage. Sherm Pendley As usual, CPAN is your friend: Have a look at Devel::Cover Ovid As noted, Devel::Cover is your friend, but you'll want to google for it, too. It's documentation is a bit

Installing PERL CPAN modules in local directory

半城伤御伤魂 提交于 2019-11-30 02:13:06
i have a 1and1 hosting account and would like to install some Perl CPAN modules that are not part of the standard host package. Is it possible to install modules without ROOT access? If so, how do i do that? Thanks for the pointers in advance. cpanminus is quickly becoming the choice interface for CPAN. It supports installing packages in to the user's home directory. Its usage is frightening simple. To install the cpanminus package locally: curl -L http://cpanmin.us | perl - App::cpanminus To install an arbitrary package: curl -L http://cpanmin.us | perl - Lingua::Romana::Perligata Remember to

How do I automate CPAN configuration?

喜你入骨 提交于 2019-11-29 22:52:11
The first time you run cpan from the command line, you are prompted for answers to various questions. How do you automate cpan and install modules non-interactively from the beginning? phaylon Since it hasn't been mentioned yet, cpanminus is a zero-conf cpan installer. And you can download a self-contained executable if it isn't available for your version control. The cpanm executable is easily installed (as documented in the executable itself) with: curl -L http://cpanmin.us | perl - --self-upgrade # or wget -O - http://cpanmin.us | perl - --self-upgrade I was looking for an easy solution for

How can I de-install a Perl module installed via `cpan`?

假装没事ソ 提交于 2019-11-29 20:50:05
I am using Perl running in user space (not installed via root) and installing modules via the command-line cpan . I would like to know if there is a simple way to remove a module without having to do a lot of work deleting individual files. I searched for this question on the internet and found some answers, but the answers I've found seem to either discuss using the Perl package manager (specific for Microsoft Windows), otherwise operating-system specific (BSDpan), suggesting using cpanplus (which I've had several bad experiences with), or ended by pointing to a dead link as follows: http:/

How do I find the module dependencies of my Perl script?

元气小坏坏 提交于 2019-11-29 20:27:29
I want another developer to run a Perl script I have written. The script uses many CPAN modules that have to be installed before the script can be run. Is it possible to make the script (or the perl binary) to dump a list of all the missing modules? Perl prints out the missing modules’ names when I attempt to run the script, but this is verbose and does not list all the missing modules at once. I’d like to do something like: $ cpan -i `said-script --list-deps` Or even: $ list-deps said-script > required-modules # on my machine $ cpan -i `cat required-modules` # on his machine Is there a simple