cpan

MySQL driver module issue with Movable Type

I am able to get mt-check to run, but it says that DBD::MySQL module is not installed. Here is what it says: DBI (version >= 1.21) Your server has DBI installed (version 1.52). DBD::mysql Your server does not have DBD::mysql installed, or DBD::mysql requires another module that is not installed. The DBD::mysql database driver is requi...

Is there any Perl module to set up an object from a default configuration plus a hashref of optional configurations?

I'm finding myself repeatedly writing and rewriting the following kind of code: my %default = (x => "a", y => "b"); sub new { my ($package, $config) = @_; my $self = {%default}; for my $k (keys %default) { $self->{$k} = $config->{$k} if defined $config->{$k}; } for my $k (keys %$config) { ...

How can I install Perl modules on a restricted server?

I have a server that I can ssh into but that's it. Otherwise it is totally closed off from the outside world. I'm trying to deploy some scripts I wrote to it but they have several Perl dependencies (Params::Validate, XML::Simple, etc.) I can't get them via yum since our satellite server doesn't have those packages and the normal CPAN ins...

Need more examples on how to use Spreadsheet::ParseExcel

I have been using the Spreadsheet::ParseExcel to list the contents of spreadsheet. I've seen several examples on how to dump the entire spreadsheet. I really would like to see how to use this script more selectively. The example below from IBM basically dumps the content of all cells that have data. #!/usr/bin/perl -w use strict;...

What are good Perl Pattern-matching / Regex Modules?

I've been having a need to do a lot of regex / pattern-matching stuff lately and, in looking at different examples / forum posts from my web searches it seems people sometimes mention that perl has good modules to help in simplifying pattern matching / regex tasks, however they neglect to mention which ones are the best for this.. I have...

Distributing a Perl Application

I recently created a little Perl application that utilizes a few non-core modules that will need to be installed via CPAN. Is there a way to distribute the application with the ability to check to see if the required modules are installed and pull them from CPAN if they aren't? I suppose I am looking for something similar to the CPAN au...

Can't install Crypt::OpenPGP through Perl CPAN

I am trying to install the Crypt::OpenPGP module via Perl CPAN with no luck. The errors I am receiving are: Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/07-digest.t 1 256 15 1 6.67% 15 Failed 1/14 test scripts, 92.86% okay. 1/2...

Search engine for CPAN modules

I find the extensive volume of modules available through CPAN to be somewhat at odds with its search capacities. I'm aware that there is a lot of data stored about modules, including the dlsip tags. However I'm not aware of a convenient interface to query this database. search.cpan.org seems to provide only a basic textual search, and...

What are the advantages of Digest::SHA over Digest::SHA1?

Are there any advantages in using Digest::SHA over Digest::SHA1 or vice versa? both seem to be maintained but I don't see a reason for Digest::SHA1 to even exist with the existence of Digest::SHA. ...

How do I automate CPAN configuration?

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? ...

How to handle modules that require Perl devel version on CPAN ?

I'm testing my project installation script on CentOS5.5. My project need Date::Manip module which requires feature module... When I try to install it (feature) through CPAN, CPAN wants to install Perl 5.9.5... *** WHOA THERE!!! *** This is an UNSTABLE DEVELOPMENT release. The version of this perl5 distribution is 9, that is, o...

Perl : Error during installion of a module of CPAN

I run on Mac OS X 10.5 and I want to write a program in Perl. However, I need to install the module RDF::Trine and DBD::CSV and I got an error when I install both. If I write : install RDF::Trine The error is : Files=51, Tests=5, 2 wallclock secs ( 0.21 usr 0.18 sys + 1.30 cusr 0.51 csys = 2.20 CPU) Result: FAIL Failed 49/51 t...

How do I automate the initial CPAN configuration?

Here http://stackoverflow.com/questions/3462058/how-do-i-automate-cpan-configuration I've found some answers which led to some questions. I tried cpan -j config.pm, but as far as I can see it is meant for per installation usage, not for changing the config-file permanently. With the $CPAN::Config-method the force CPAN::FirstTime to not ...

Two versions of Perl in Mac OS X?

I've installed the Template module via CPAN on my MacBook Pro and it seemed to install correctly. But, when I try to run a script that includes the Template module, I get the following: Can't locate Template.pm in @INC (@INC contains: /Users/purinkle/Sites/rob/modules /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level /Library/...

Dependency problem of Perl CPAN modules

I tried to install SOAP::WSDL on Ubuntu 8.04 Server through CPAN but got the following error message: cpan> install SOAP::WSDL Running install for module SOAP::WSDL Running make for M/MK/MKUTTER/SOAP-WSDL-2.00.10.tar.gz Checksum for /root/.cpan/sources/authors/id/M/MK/MKUTTER/SOAP-WSDL-2.00.10.tar.gz ok SOAP-WSDL-2.00.10/ SOAP-WSDL-2.00...

Local cpan builds

Hi, I'd like to use a home directory specific, non-root directory for stuff I install from cpan. How can I configure it? Normal CPAN configuration tries to install packages into /usr. After adding 'makepl_arg' => q[PREFIX=~/cpan_local], simple packages seem to build, but I cannot build a package that pulls its dependencies - the depende...

Where does CPAN install Perl modules in OS X?

Just curious where CPAN installs all the Perl modules by default in OS X. ...

Higher level libraries for Sybase::DBLib?

Has anyone written something similar to SQL::Abstract for Sybase::DBLib? in particular, I'm interested in being able to insert a hash of values into a table without manually forming the sql query myself. A big issue in working with sybperl is that SQL::Abstract returns bind values and placeholder SQL, not concrete SQL. The way to creat...

Why can't my CPAN client from MacPorts find Module::Build?

I am using the macports in snow leopard. I wanted to install certain perl modules to be able to run a script. The DateTime module to be exact. How do I do this? I tried using the following command. perl -MCPAN -e shell cpan > install DateTime But it still says that DateTime.pm not found. What have I done wrong? Edit: I think I have ...

How could I find files that use certain modules in CPAN?

Some modules on CPAN are excellently documented, others.... not so much, but it's usually easy to discern how to use a module via prior art (e.g modules/tests that used the module you're looking to use). I'm wondering what the best way is to find code that uses the code you're looking to use. example I want to use (maybe?) Dist::Zilla:...