cpan

Is there something like Perl's Win32::FileNotify for Linux or OS X?

柔情痞子 提交于 2019-12-20 03:20:00
问题 I've been using Win32::FileNotify on Windows, and I was curious to know if there were something similar for Linux and OS X. I haven't been able to find such a module using Google. Does anyone here know of such a thing? 回答1: File::ChangeNotify sounds like a cross-platform way to do this. 回答2: For systems where famd can run (Irix, Linux, BSDs, most Unices) there is SGI::FAM and Sys::Gamin, both of which do not build straight out of CPAN or tarball, but do work well once you get them working.

Installing Perl modules to a specific location

房东的猫 提交于 2019-12-20 02:49:30
问题 I have several Linux machines that run Perl programs and other programs and tools. I want to keep all tools between machines synchronized, so I have shared the /usr/local directory between one machine (Main) and the others. Now I would like to keep all my Perl modules and their dependencies synchronized as well in /usr/local/<path to modules> . I have found the local::lib module, but that is intended to install modules to your home directory. How can I set up CPAN (or CPAN alternatives) to

Installing Perl modules to a specific location

拈花ヽ惹草 提交于 2019-12-20 02:49:06
问题 I have several Linux machines that run Perl programs and other programs and tools. I want to keep all tools between machines synchronized, so I have shared the /usr/local directory between one machine (Main) and the others. Now I would like to keep all my Perl modules and their dependencies synchronized as well in /usr/local/<path to modules> . I have found the local::lib module, but that is intended to install modules to your home directory. How can I set up CPAN (or CPAN alternatives) to

Best practice for using slightly modifying module from CPAN?

☆樱花仙子☆ 提交于 2019-12-19 14:59:10
问题 I'm using DBI and DBD::SQLite, and now I'd like to use the R*Tree feature of SQLite. Since this feature is not compiled by DBD::SQLite by default, I have to add a -DSQLITE_ENABLE_RTREE=1 to the @CC_DEFINE variable in DBD::SQLite's Makefile.PL. If I do a 'perl Makefile.PL && make && make install', everything works fine locally on my machine, but this ultimately needs to be deployable/distributable to end users. What should I do in a case like this? Should I copy the source, grep the source,

Why can't I simply copy installed Perl modules to other machines?

被刻印的时光 ゝ 提交于 2019-12-19 08:05:43
问题 Being very new to Perl but not to dynamic languages, I'm a bit surprised at how not straight forward the manage of modules is. Sure, cpan X does theoretically work, but I'm working on the same project from three different machines and OSs (at work, at home, testing in an external environment). At work (Windows 7) I have problem using cpan because of our firewall that makes ftp unusable At home (Mac OS X) it does work In the external environment (Linux CentOs) it worked after hours because I

Why can't I simply copy installed Perl modules to other machines?

拥有回忆 提交于 2019-12-19 08:04:11
问题 Being very new to Perl but not to dynamic languages, I'm a bit surprised at how not straight forward the manage of modules is. Sure, cpan X does theoretically work, but I'm working on the same project from three different machines and OSs (at work, at home, testing in an external environment). At work (Windows 7) I have problem using cpan because of our firewall that makes ftp unusable At home (Mac OS X) it does work In the external environment (Linux CentOs) it worked after hours because I

When should I use Perl CGI instead of PHP (or vice versa)?

北慕城南 提交于 2019-12-19 05:11:35
问题 For hobby purposes, I have a shared space on a hosting server that is providing, as many of them are, both PHP and Perl CGI. I have read on several places that CGI scripts are obsolete now, I think mainly for performance issues (like Is PHP or vanilla Perl CGI faster?). But since I just started studying Perl, I wouldn't want to waste time on implementing solutions in PHP that are way easier (or only possible) in Perl. Also there are the boilerplate issues, I'm aware of CPAN (that is the

Installing a perl module from CPAN on XAMPP for Windows

℡╲_俬逩灬. 提交于 2019-12-18 17:37:08
问题 I'm pretty rusty with Perl and I don't think it's helping that I'm running it in Windows. I'd like to install this module. I tried the instructions here to install a CPAN module, but it fails trying to install App::cpanminus (the very first step.) I tried just running cpan Config::Simple and it didn't work either. In both situations, it fails with this error message: Unwrapping had some problem, won't try again without force Had problems unarchiving. Please build manually Running make test

How can I install local modules with the cpan tool?

橙三吉。 提交于 2019-12-18 17:27:59
问题 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 manually as root (a major hassle for me)? thanks! 回答1: If you want to install the Perl distribution in the current directory, use the dot instead of a filename: cpan . If

What are some code coverage tools for Perl?

女生的网名这么多〃 提交于 2019-12-18 11:46:24
问题 Are there any good (and preferably free) code coverage tools out there for Perl? 回答1: 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. 回答2: As usual, CPAN is your friend: Have a look at Devel::Cover 回答3: As noted,