in reply to Module for setting up configuration file during module installation

Hi, you might like ExtUtils::MakeMaker::prompt() and/or Dist::Zilla::Plugin::MakeMaker::Custom.

Hope this helps!

Updated link, thanks Athanasius.


The way forward always starts with a minimal test.
  • Comment on Re: Module for setting up configuration file during module installation

Replies are listed 'Best First'.
Re^2: Module for setting up configuration file during module installation
by nysus (Parson) on Jan 03, 2019 at 04:31 UTC

    The first link doesn't work. And I don't know enough about MakeMaker files to really know how to write my own to run a configuration script with the second module you linked to, unfortunately.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

      The first link is to a function prompt() provided in ExtUtils::MakeMaker. Didn't the lower casing of the last element indicate that? Did you look at the doc for EU::MM to find it? I've corrected the URL now, thanks Athanasius.

      The second link is to a dzil plugin that allows you to create a custom Makefile script, which would incorporate the prompting for input you wanted. If you're not willing to use it because you "don't know enough about it", then I don't know what can be done other than put in the effort to learn about it. Shrug.

      (The same author released Dist::Zilla::Plugin::ModuleBuild::Custom if you use Module::Build, but I am not aware of a built-in way to prompt for user information.)


      The way forward always starts with a minimal test.