I found this notes from the book of Perl Hacks by Damian Conway, specifically - Hack 17. Collect Configuration Information.
Some code you write needs configuration information when you build and
+ install it. For example, consider a program that can use any of seve
+ral optional and conflicting plug-ins. The user must decide what to u
+se when she builds the module, especially if some of the dependencies
+ themselves have dependencies.
When you run your tests and the code in general, having this informati
+on available in one spot is very valuableyou can avoid expensive and
+tricky checks if you hide everything behind a single, consistent inte
+rface.
How do you collect and store this information? Ask the user, and then
+write it into a simple configuration module!
Then he presents his code which he describes as extending the Module::Build. I tried to run his code but was getting errors -- "Can't locate SUPER.pm in @INC..." . I wonder if there is a simpler version of implementing what Damian Conway mentioned in his book.
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.