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

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

  • Comment on Re^3: Requring minimum perl version in a cpanfile ( inc::Module::Install )
  • Download Code

Replies are listed 'Best First'.
Re^4: Requring minimum perl version in a cpanfile ( inc::Module::Install )
by Corion (Patriarch) on Jan 20, 2017 at 07:56 UTC

    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 :)

        I interpret this discussion towards the idea of not supporting . in @INC in the future for somewhat plausible security reasons.

        Note that this would not prevent manually adding dot to @INC.

        Update: Also see this bug ticket, which I think was the original report.