[Chicago-talk] CPAN prerequisite

brian d foy brian.d.foy at gmail.com
Fri Oct 28 11:27:53 PDT 2005


On 10/28/05, Jay Strauss <me at heyjay.com> wrote:

> I'm building my first CPAN module.  Is there a way to learn all the
> dependences of a module, or do I need to build a clean box, and do trial
> by error, till I get the prerequisite list?

I use Test::Prereq. It's an ugly hack, but it's saved me a lot of hassle.


> Also, I need to check if the user is installing on a threaded Perl.
> Would this be an appropriate, and good way to test, in the Makefile.PL

> if (! grep /ithread/, `perl -V`) {
>     die "You must install on a threaded version of perl";
> }

You don't have to call perl (and when you do, you can use $^X to call
the same perl that ran the script).  In this case, you can look in
Config.pm.

--
brian d foy <brian.d.foy at gmail.com>
http://www.pair.com/~comdog/


More information about the Chicago-talk mailing list