Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Module configuration for user vs. developer

by herveus (Parson)
on May 31, 2006 at 15:10 UTC ( #552823=note: print w/ replies, xml ) Need Help??

in reply to Module configuration for user vs. developer


Makefile.PL (or the functional equivalent if you are using Module::Build)

You can interact with the user when they do "perl Makefile.PL". For example, you could ask them which back-end to use and pass that information on somehow. Can you abstract out the choice of back-end into a simple configuration item? Alternately, you might be able to mechanically discover answers (or potential answers to confirm with the user).

Makefile.PL can do a lot of stuff when it's necessary. You just write suitable code, although the implementation details can be "interesting". I did this once a while back, so I'm fuzzy on the details, but I know that you can do it. You might also look at modules that interact with you when you run 'perl Makefile.PL' and steal ideas.


Comment on Re: Module configuration for user vs. developer
Replies are listed 'Best First'.
Re^2: Module configuration for user vs. developer
by bibliophile (Parson) on May 31, 2006 at 15:38 UTC
    Absolutely, the choice of back-end can become a simple config item. I'm a little (ok, more than a little) makefile-challenged, so I need to hit the books on this.

    The further bit of complication is that whichever data store is used must have a bit of pre-configuration done before the test suite can run (hmm... maybe I can set up a "test" that does this, which can run as the first test....).
    This would make the pick-one-at-make-time a good option.

    -- WARNING: You are logged into reality as root.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://552823]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2016-02-12 05:45 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (388 votes), past polls