cpan

Why can't SGML::Parser::OpenSP find the symbol __ZTI15SGMLApplication?

I'm trying to "install SGML::Parser::OpenSP" from the cpan shell, but it fails on the first "make test". I also get the same error if I go into the build directory and run make test. I believe this bit of the output below is the relevant part. Note the Symbol not found when perl gets to the "use" line for the new library. The file list...

Which Perl database interface should I use?

Is CPAN DBI the best database interface to use in Perl for general database use? Are there some better options? ...

What's the easiest way to install a missing Perl module?

I get this error: Can't locate Foo.pm in @INC Is there an easier way to install it than downloading, untarring, making, etc? ...

What Perl module would you be lost without?

What Perl module would you be lost without? ...

Why isn't Scalar::Util::Numeric installing correctly?

Sorry if this all runs together; it looks like the line breaks aren't showing up in the preview window. I got this output when running sudo cpan Scalar::Util::Numeric; thx, Josh. jmm@freekbox:~/bfwsandbox/sa/angel/astroportal/dtu8e/resources$ sudo cpan Scalar::Util::Numeric [sudo] password for jmm: CPAN: Storable loaded ok Going to re...

How do I setup a local CPAN mirror?

What do I need to setup and maintain a local CPAN mirror? What scripts and best practices should I be aware of? ...

Useful Perl modules

What is the most important module you pull off of CPAN to add to a stock Perl install? One module only per response, please. Please explain why you think the module is best-of-breed ...

How can I install CPAN modules locally without root access (DynaLoader.pm line 229 error)?

Doesn't work with other modules, but to give an example. I installed Text::CSV_XS with a CPAN setting: 'makepl_arg' => q[PREFIX=~/lib], When I try running a test.pl script: $ perl test.pl #!/usr/bin/perl use lib "/homes/foobar/lib/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi"; use Text::CSV_XS; print "test"; I get ...

How can I install ExtUtils::PkgConfig in Perl on Windows?

I've tried cpan and cpanp shell and I keep getting: ExtUtils::PkgConfig requires the pkg-config utility, but it doesn't seem to be in your PATH. Is it correctly installed? What is the pkg-config utility and how do I install it? Updates: OS: Windows This module is a prerequisite for the File::Extractor module ...

How do I get a list of installed CPAN modules?

Aside from trying perldoc <module name> individually for any CPAN module that takes my fancy or going through the file system and looking at the directories I have no idea what modules we have installed. What's the easiest way to just get a big list of every CPAN module installed? From the command line or otherwise. ...

Why can't I install DBD::mysql so I can use it with Maatkit?

I'm trying to install Maatkit following the maatkit instructions. I can't get past having to install DBD::mysql. "Warning: prerequisite DBD::mysql 1 not found." When I try to install DBD::mysql from cpan, I get very helpful "make had returned bad status, install seems impossible". Perl is "v5.8.8 built for darwin-thread-multi-2level", ...

How can I find the version of an installed Perl module?

How do you find the version of an installed Perl module? This is in an answer down at the bottom, but I figure it important enough to live up here. With these suggestions, I create a function in my .bashrc function perlmodver { perl -M$1 -e 'print "Version " . $ARGV[0]->VERSION . " of " . $ARGV[0] . \ " is installed.\n"' $1 } ...

What constitutes effective Perl training for non-Perl developers?

I've been working with Perl long enough that many of its idiosyncracies have become second nature to me. When new programmers join our group, they frequently have little to no experience with Perl, and it's usually my task to train them (to the extent necessary). I'd like to know what to focus on when training a programmer who is new t...

What are some code coverage tools for Perl?

Are there any good (and preferably free) code coverage tools out there for Perl? ...

How can I determine CPAN dependencies before I deploy a Perl project?

Does anyone have any suggestions for a good approach to finding all the CPAN dependencies that might have arisen in a bespoke development project. As tends to be the case your local development environment rarely matches your live one and as you build more and more projects you tend to build up a local library of installed modules. These...

How can I use a new Perl module without install permissions?

Here is my situation: I know almost nothing about Perl but it is the only language available on a porting machine. I only have permissions to write in my local work area and not the Perl install location. I need to use the Parallel::ForkManager Perl module from CPAN How do I use this Parallel::ForkManager without doing a central instal...

How can I extract URL and link text from HTML in Perl?

I previously asked how to do this in Groovy. However, now I'm rewriting my app in Perl because of all the CPAN libraries. If the page contained these links: <a href="http://www.google.com"&gt;Google&lt;/a&gt; <a href="http://www.apple.com"&gt;Apple&lt;/a&gt; The output would be: Google, http://www.google.com Apple, http://www.ap...

How can I install a specific version of a Perl module?

I'm tasked with replicating a production environment to create many test/sit environments. One of the things I need to do is build up Perl, with all the modules which have been installed (including internal and external modules) over the years. I could just use CPAN.pm autobundle, but this will result in the test environment having much...

How do I tell CPAN.pm where to get modules?

Here is the complete install command to CPAN and the output: sudo perl -MCPAN -e "install Bundle::CPAN" CPAN: Storable loaded ok (v2.13) Going to read /home/delgreco/.cpan/Metadata Database was generated on Mon, 08 Dec 2008 03:27:10 GMT CPAN: LWP::UserAgent loaded ok (v2.033) CPAN: Time::HiRes loaded ok (v1.55) CPAN: YAML loaded ok (v...

Is there a CPAN module to parse nested parentheses?

Is there a CPAN module that can read a string like this: "[[<asdf>, <foo>], (abc, def, ghi), ({'jkl'})]" ...and parse it into some sort of tree structure that's easy to walk and pretty-print? ...