in reply to Re: Requring minimum perl version in a cpanfile
in thread Requring minimum perl version in a cpanfile

It's not going on cpan, so it's not going to use a build tool. No EUMM, no MB. Just "cpanm --installdeps ."
  • Comment on Re^2: Requring minimum perl version in a cpanfile

Replies are listed 'Best First'.
Re^3: Requring minimum perl version in a cpanfile
by Corion (Patriarch) on Jan 20, 2017 at 06:54 UTC

    If you were to use EUMM instead of cpanfile, cpanm --installdeps . would still work but you could specify your minimum Perl version.

Re^3: Requring minimum perl version in a cpanfile ( inc::Module::Install )
by Anonymous Monk on Jan 20, 2017 at 07:53 UTC

    Your Makefile.PL can be as simple as

    use inc::Module::Install; name 'Dist-Name'; all_from 'lib/Dist/Name.pm'; do 'cpanfile'; ## as cpanfile uses Module::Install syntax perl_version '5.666'; ## make it die WriteAll;

    See Module::Install

      I think if you want to

      use inc::Module::Install;

      You will need to push '.' onto @INC starting with Perl 5.26.

      So likely the belt-and-suspenders approach would be

      use lib '.'; use inc::Module::Install;

        No, no I don't think so, that would be hella stupid :)