cpan

Perl documentation (POD) browsers? [closed]

北城以北 提交于 2019-12-04 17:38:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I'm looking for is a good on-screen POD reading experience. For years, I've used perldoc or man running in an xterm to read Perl documentation on screen, and a small custom program built around Pod::LaTeX to print it. The printed version is good: the script does a nice job. However, on-screen reading is painful:

Perl Compilation Error: “Can't locate local/lib.pm”

自闭症网瘾萝莉.ら 提交于 2019-12-04 17:08:43
As a Perl rookie, I have made a rookie mistake. I was working on a project that required an HTML parser so I thought I'd install Perl's HTML::TreeBuilder::XPath module, so I dove into cpan and perlbrew without a full understanding of how they work. I created a local library, but would like to return everything back to default. However, I get this error every time I open a terminal window (twice, for some reason): Can't locate local/lib.pm in @INC (@INC contains: /Users/James/perl5/lib/perl5 /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin

cpan ignores makepl_arg and mbuild_arg

空扰寡人 提交于 2019-12-04 15:12:05
I followed the instructions in the most voted answer to this question How can I install a CPAN module into a local directory? , which basically says that I can configure CPAN to install modules locally with: % cpan cpan> o conf makepl_arg INSTALL_BASE=/mydir/perl cpan> o conf commit cpan> o conf mbuild_arg '--install_base /mydir/perl' cpan> o conf commit However, when I try % cpan % install List::Gen My installation fails (it looks like CPAN still tries to install on a system path). Why? cpan[4]> install List::Gen Going to read '/home/XXXX/.cpan/Metadata' Database was generated on Mon, 04 Feb

Separating configuration data and script logic in Perl scripts

坚强是说给别人听的谎言 提交于 2019-12-04 10:48:33
问题 I find the following anti-pattern repeated in my Perl scripts: the script contains some machine/setup specific settings which I store in-line as constants in the script whereas the rest of the script is general in nature: #!/usr/bin/perl use strict; use warnings; # machine specific settings at the start of the script. my $SETTING_1 = "foo"; my @SETTING_2 = ("123", "456"); my $SETTING_3 = "something"; # general part of script follows. ... This pattern is somewhat okay when running on one

What's the fastest way to get CRUD over CGI on a database handle in Perl?

落花浮王杯 提交于 2019-12-04 08:54:46
TL;DR: Want to write CGI::CRUD::Simple (a minimalist interface module for CGI::CRUD), but I want to check first if i overlooked a module that already does that. I usually work with applications that don't have the niceties of having frameworks and such already in place. However, a while ago i found myself in a situation where i was asking myself: "Self, i have a DBI database handle and a CGI query object, isn't there a module somewhere that can use this to give me some CRUD so i can move on and work on other things instead of spending hours writing an interface?" A quick survey on CPAN gave me

How do I use cpanminus with a local CPAN::Mini?

别等时光非礼了梦想. 提交于 2019-12-04 05:22:40
I've created my own local copy of CPAN with minicpan and managed to reconfigure cpan to use it - Fantastic! ..but how would I go about using it with cpanminus ? This should be possible using --mirror-only option. For example: cpanm --mirror ~/minicpan --mirror-only 来源: https://stackoverflow.com/questions/8139088/how-do-i-use-cpanminus-with-a-local-cpanmini

I upgraded SVN::Core via CPAN and now git-svn doesn't recognise http:// URLs

牧云@^-^@ 提交于 2019-12-04 05:13:29
This question was migrated from Server Fault because it can be answered on Stack Overflow. Migrated 9 years ago . Learn more . I was trying to update version of Subversion used by git svn and so I ran the following command. > cpan SVN::Core It appeared to work; however, now git svn doesn't recognise HTTP URLs! > git svn rebase Bad URL passed to RA layer: Unrecognized URL scheme for 'http://<...>' at /opt/local/libexec/git-core/git-svn line 2265 I've tried it on svn:// URLs and it works okay. Does anyone know how to fix this? I'm running OS X 10.6 and using MacPorts for git, subversion, perl,

How to tell CPAN about path to make and cc

二次信任 提交于 2019-12-04 04:57:05
Running Perl 5.10 CPAN on Solaris with opencsw.org packages, Makefile.PL from packages can't find the correct path and cc (gcc). I found the path to make and set it to gmake, but I can't find any setting for cc. I thought I once set this in CPAN/Config.pm (or with o config ...) but can no longer find any setting and don't have enough patience to wade through the thicket to figure out where such a basic thing gets set. Does anyone know? cpan doesn't need to know where gcc or equivalent is, because it isn't cpan 's job to call it directly. Usually it's Makefile.PL or Build.PL that needs to know

Perl: Cannot Access Web Service with SSL

て烟熏妆下的殇ゞ 提交于 2019-12-04 04:03:28
问题 This is my first Perl script. I have installed SOAP::Lite using CPAN and it seems to have gone okay. I'm trying to access a simple HelloWorld .NET web service. I'm getting an error that seems to be related to Perl or SOAP::Lite not being able to verify the SSL certificate. Although it looks like it's returning a code of 500, I created a Java client that was able to call the web method just fine, so I don't think the problem is on the web service end. Can anyone point me in the right direction

Install Perl modules that require customized options via CPAN

谁都会走 提交于 2019-12-04 03:41:49
问题 a few times I've come across modules that require custom flags when installing. For example, now I'm stuck at Net::ZooKeeper which requires --zookeeper-include and --zookeeper-lib set. Is there a way I can set these within the cpan shell? Or do I just need to build manually? 回答1: There's an easy way to "build manually" but still let CPAN handle finding the latest release, downloading, and unpacking for you -- at the cpan shell do look Net::ZooKeeper , or with cpanminus do cpanm --look Net: