On Feb 1, 2008 3:26 PM, Thomas Klausner <[EMAIL PROTECTED]> wrote: > I'd like to tell CPAN/CPANPLUS/the user that they need $version of Perl > for installing a given dist. I don't want CPAN/CPANPLUS to go and > install that version of Perl. Any hints? >
(1) Add "use 5.xxx;" to the top of your Build.PL or Makefile.PL. This is the safe, reliable way to indicate a necessary Perl version and will also ensure that CPAN Testers appropriately flag a missing Perl dependency as "NA". (2) For Build.PL, add "perl" to the Build.PL "requires" argument. You can add "perl" to PREREQ_PM in Makefile.PL, but it's not supported and EU::MM will complain (but will still work). If you've done step #1, the only thing this really does for you is make sure "perl" shows up in your META.ymlfile. If you have Module::Build 0.2808_01, it will even do the right thing if it is used to generate Makefile.PL. I think that almost any recent version of CPAN or CPANPLUS is smart enough not to install a version of perl just because they saw it in the dependencies list. David
