Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Either-or dependencies

by dragonchild (Archbishop)
on Oct 01, 2007 at 13:27 UTC ( #641881=perlquestion: print w/replies, xml ) Need Help??
dragonchild has asked for the wisdom of the Perl Monks concerning the following question:

I've received a request for DBM::Deep to allow for pure-perl versions of various modules, such as Digest::MD5 and Digest::MD5::Perl. The solution when loading is to eval the use and fail appropriately. However, I'm not quite sure how to do the dependencies for Module::Build (or ExtUtils::MakeMaker). Essentially, I want to go through the following steps:
  1. Do you have Digest::MD5 installed?
  2. If not, do you have Digest::MD5::Perl installed?
  3. If not, ask which one you want to have installed.
Is this a feature of MB or EUMM? If not, what would the simplest way of putting this into my Build.PL (or Makefile.PL - I'm willing to switch back) be?

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re: Either-or dependencies
by adrianh (Chancellor) on Oct 01, 2007 at 13:37 UTC
    Is this a feature of MB or EUMM

    Take a look at features() and auto_features() in M::B. No idea of the status of support for these in CPANPLUS.

      I can't find that in either the POD or source of MB. What are you referring to?

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://641881]
Approved by andreas1234567
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2018-08-14 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (153 votes). Check out past polls.

    Notices?