On Thu, Mar 4, 2010 at 1:28 AM,  <cr...@animalhead.com> wrote:
> as I've done in Makefile.PL below, and use what's available.  It's
> dynamically installing a module that I'm sending this to ask about.

You don't need to dynamically install a module.  You just need to
dynamically create the PREREQ_PM.   Then, assuming you're running CPAN
or CPANPLUS, it will read the PREREQ_PM out of your generated
Makefile, detect what's missing and attempt to install it.

> if (@enginePrereq) {
>    # what do I do here to make JS or JE be installed?
> }

Nothing.  You don't need this

>     'PREREQ_PM'      => {'LWP'           => 5.6,
>                          'Scalar::Util'  => 0,
>                          'URI'           => 1.3,
>                          @enginePrereq},  # all this does is complain

That's correct.  It complains.  It would complain about URI if you
didn't have URI, too.

You've already done exactly what you need to do.  If you're interested
in testing it, try "cpan ." from the distribution directory.  That
should go through the full CPAN install process, including
installation of whatever prerequisite you added.

-- David

Reply via email to