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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Build (Score:2)
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
recommendsand/orauto_featuresparamters.—Theory
Reply to This
Re:Build (Score:2)
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?
Re:Build (Score:2)
auto_featuresallows 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 [versiondude.net]), 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...
—Theory