cpan

How can I check if a binary dependency is available in Perl?

Having volunteered to maintain a stagnant CPAN package (GnuPG) I'd like improve the install files such that they exit gracefully if the gpg binary (which GnuPG is a wrapper for) cannot be found. After a bit of seeking inspiration from other packages, I've come up with adding this to Makefile.PL: my @paths = grep { -x "$_/gpg" } split /:...

How do I tell cpan to install all dependencies?

How do I tell cpan to install all dependencies? Edit: After following Sinans link. I tried setting these in cpan: cpan> o conf prerequisites_policy follow cpan> o conf commit I still had to answer y a couple of times. (but fewer than before it feels like) Any way to get it to always go ahead and install? I want to make it unattended...

How do you list all locally installed CPAN modules?

Hi I'm beginner for perl. Do you now How to list local installed CPAN modules? like pear list in PHP. ...

What are some good Perl debugging methods?

Are there any other ways for debugging Perl apart from Data::Dumper and perl -d? ...

Retrying an operation after an exception: Please criticize my code.

My Perl application uses resources that become temporarily unavailable at times, causing exceptions using die. Most notably, it accesses SQLite databases that are shared by multiple threads and with other applications using through DBIx::Class. Whenever such an exception occurs, the operation should be retried until a timeout has been re...

How do I tell CPAN.pm to use an application-specific mini-cpan?

Is there a way to use app-specific mini-CPANs (to ensure specific module versions for different apps and make an install work without net access). The 'standard' mini-cpan way of things relies on setting 'o conf urllist' with a file url in your CPAN/Config.pm That's fine with one single mini-cpan. However, I need to automate having a C...

How do I install Spreadsheet::WriteExcel on Windows with ActiveState Perl?

I have installed Perl version 5.6.1. But it doesn't support Date::Calc. So I installed 5.10.0. Now I am writing a program that writes data in Excel using Perl. For this, I have to use Spreadsheet::WriteExcel but Spreadsheet::WriteExcel was not installed when I installed ActiveState Perl. So now do I have to install another version of pe...

OpenOffice::OODoc stylize text within a paragraph

I have a simple task of adding a paragraph that has some formatted text within it. I cannot figure out how to stylize the text. Example output: John Smith 200 Main Street single my $doc = odfDocument(file=> 'outputfile.odt',create=> 'text'); $doc->appendParagraph(text => "John Smith 200 Main Street single", style => "optionalParag...

How can I solve "world writable" issues with modules uploaded to PAUSE (CPAN) from Win32?

Does anyone one know how not to get the "world writables" fail message from PAUSE when I upload a module to PAUSE? I packed it with make dist on Windows. I haven't got access to a Linux box at work and I need to work it out on Windows. ...

Cannot install XML::LibXML module on Windows

I am trying to use XPath to extract some HTML tags and data and for that I need to use XML::LibXML module. I tried installing it from CPAN shell but it doesn't install. I followed the instructions from CPAN site about the installation, that we need to install libxml2, iconv and zlib wrappers before installing XML::LibXML and it didn't ...

Why does installing certain CPAN modules require root privilege?

I need to install some CPAN modules in a linux box which I do not have the root privilege. The installation of Spreadsheet::WriteExcel goes quite smoothly. But the try to install File::Find::Rule failed with warning "you do not have permissions to install into ....." and hint "you may have to su to root to install the package" I'm pu...

How can I get list of mirrors in newest CPAN.pm?

In old CPANs, when you run it first time, it asked you for the continent/country your're in, and then gave you a way to choose mirror. Now it doesn't ask this question! I can of course find mirror manually, and put it in urllist, but the geographical browsing in CPAN was really handy, but I can't seem to be able to get it any longer. W...

Installation of Perl Packages is failing on CentOS 5, 64-bit

I am trying to install DBD::mysql and I am getting thousands of warnings and errors when I install like this: perl -MCPAN -e 'install DBD::mysql' The errors are like: dbdimp.c:3215 error: 'imp_sth_t' has no member named 'warning_count' Then at the end it says: make had returned a bad status, install seems impossible This also fa...

Perl documentation (POD) browsers?

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: You can search, but go...

Which lesser-known CPAN modules have you found to be real gems?

Which lesser-known CPAN modules have you found to be real gems? Please post links to the modules like this [`Example::Module`][Example::Module] [Example::Module]: http://search.cpan.org/perldoc/Example::Module Or post a link to the version control repository. A short description would be good to include, too. ...

Why does CPAN.pm fail to upgrade?

Clarification: I'm pretty much a Perl/CPAN noob, don't assume I know too much. I have a pretty vanilla CPAN because I just rebuild my entire Lenny 5.0.2 VPS - so I pretty much have the default modules installed. My eventual goal is to setup foswiki on my Apache 2.x based server. So far I'm reading this guide and it says the fi...

How can I install local modules with the cpan tool?

my admin has given me sudo rights for cpan I also need to install a couple of non-CPAN modules (Atlassian Crowd -> svn connector) to the global PERL5LIB. I vaguely remember that cpan can install from local sources, without pulling modules from the web. any pointers? can I do it or should I just have him install those modules manua...

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

I'd like to install a Perl module (in this case, FindBin), but since it is included in the perl5.10.1 distribution, cpan wants to install perl5.10 for me. Is there any 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 (e...

The future of Perl? (Perl 6, Employability)

I've found a few related questions, like Python V Perl and Is Perl Worth it?, but I can't seem to find anything that directly addresses this question. Is there a legitimate future in Perl? I work in a Perl shop right now, and I came from PHP so I see some of the advantages of an arguably "lower" level language when doing things on the s...

Where can I get a Xerces-C compatible with XML::XERCES 2.7.0?

This question is in continuation of this post, I have tried installing Xerces-C but the thing is Xerces-C version is 2.8.0 and 3.0.0 and XML::XERCES latest version is 2.7.0 and so am getting following error message: Update2: Here is the error which am getting, it says there is somekind of version mismatch. Using XERCES_LIB = /home/ad...