Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by Theory (10) on 2005.05.11 12:07 (#40341) Homepage Journal

    In order to make your META.yml file accurate, dynamically adding modules to Makefile.PL at runtime is frowned upon. The workaround in a case like yours is to use Module::Build and its recommends and/or auto_features paramters.


    • Yeah, I was concerned about that, but I'm not ready to go the Module::Build route yet as there are still some folks out there who kick up a fuss about using it. I suppose I should bite the bullet. And recommends doesn't work because these modules are required if the shell is installed. What's auto_features? Does M::B have something that cleanly handles this?

      • auto_features allows you to enable the shell only if the prerequisites are already installed. Randy has worked some on adding advanced version checking to M::B (via a mini-language he calls dEx []), but it's not in yet. Once it is, you'll be able to specify a collection of modules for a particular feature, and it will prompt the user to see if they want the feature and add the module prerequisites if they do.

        But he hasn't been working on it for a while...