The Makefile.PL is just a Perl script, so you can do Perl scripting things in it.
There are some things to consider:
- Remove the cache file on a `make clean` or `make realclean`. In WriteMakefile you can list additional things to remove in the "clean" key.
- Don't leave a file with sensitive information lying around in a build directory.
- You don't have to do everything when you run Makefile.PL. For instance, you can add a MY::test_harness function which will override Makemaker's. In that, you can prompt for a password, then set the enviroment before you call the real test_harness.
- You can also filter files during a `make` with the PL_FILES key in WriteMakefile().
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>
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.