The Makefile.PL is just a Perl script, so you can do Perl scripting things in it.

There are some things to consider:

One of our clients is very sensitive about some of the security issues, so we don't test a "live" connection for the module installation. We have another set of script to do that, and they grab the right credentials but do not save them anywhere outside the program. That same script can then be used to verify a set-up later, even when the module distro is gone.

Beyond that, I've had a few requests to add a "config shell" to ConfigReader::Simple, but I haven't had time to do it. Basically, it would load a configuration file then go through it an prompt the user for values. You'd have to start with a config file, but it can be a dummy file.

--
brian d foy <bdfoy@cpan.org>

In reply to Re: Saving the testing config in Makefile.PL by brian_d_foy
in thread Saving the testing config in Makefile.PL by rinceWind

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.