in reply to Changing values in module installations.

Allthough I've never used it, I know that a ExtUtils::MakeMaker::prompt method exists (allthough, it seems to be extremely poorly documented).

It should do exactly what you want, take a look at some other CPAN modules that use it in their Makefile.PL for examples.

  • Comment on Re: Changing values in module installations.

Replies are listed 'Best First'.
Re: Re: Changing values in module installations.
by shotgunefx (Parson) on Mar 21, 2002 at 08:31 UTC
    Thanks for the hint. What I find not obvious is how most people handle parts of a module that change during install time. I ended up just reading the source from the Makefile.PL and changing the value of $SYSTEMID to the prompted value with a s///. I didn't want a seperate cfg file as this module is loaded a lot. Basically a bunch of vars that define system defineds. (SMTP server, features enabled, log locations, etc.)

    -Lee

    "To be civilized is to deny one's nature."