David Golden wrote: > Module::Build::Compat drops 'perl' from the list of prerequisites when > generating a Makefile.PL and/or Makefile. While EU::MM doesn't handle > 'perl' well (it issues a warning about a missing prerequisite), it > does still write it into the Makefile PREREQ_PM line and into the > META.yml. > > By dropping that 'perl' prerequisite, Module::Build::Compat will in > some cases prevent CPAN.pm or other downstream tools like > CPAN::Reporter from detecting and reacting to an insufficient version > of Perl. I believe better behavior is to pass the prerequisite along > rather than drop it. > > The attached patch deletes the lines that skip 'perl' when assembling > prerequisites.
The way MakeMaker traditionally handles a perl prerequisite is by sticking "require 5.xxx" at the top of the Makefile.PL. The CPAN tools can spot the resulting error message and take the appropriate action.