"I rely on Makefile.PL do specify the minimum Perl version."

I didn't think that would be enough, so I ran some tests.

ken@titan ~/tmp/pm_11152747_min_ver $ module-starter --module=Bod::Min::Ver ... Created starter directories and files $ cd Bod-Min-Ver # Modified lib/Bod/Min/Ver.pm package Bod::Min::Ver; #use v5.36; <--- commented out our $VERSION = '0.001'; print "$^V\n"; <--- newly added # remainder unchanged $ cat Makefile.PL ... MIN_PERL_VERSION => '5.036', ... $ perlbrew switch perl-5.34.0 $ perl -v | head -2 | tail -1 This is perl 5, version 34, subversion 0 (v5.34.0) built for cygwin-th +read-multi $ perl Makefile.PL Checking if your kit is complete... Looks good Warning: Perl version 5.036 or higher required. We run 5.034000. Generating a Unix-style Makefile Writing Makefile for Bod::Min::Ver Writing MYMETA.yml and MYMETA.json $ make cp lib/Bod/Min/Ver.pm blib/lib/Bod/Min/Ver.pm Manifying 1 pod document $ make test ... t/00-load.t ............. Perl v5.36.0 required--this is only v5.34.0, + stopped at t/00-load.t line 3. ... all other tests failed in a similar fashion ... $ perldoc lib/Bod/Min/Ver.pm ... POD template shown correctly ... $ perl -e 'use lib "./lib"; use Bod::Min::Ver' v5.34.0

So, `perl Makefile.PL` only provides an advisory warning, and module can still be loaded with a Perl version earlier than MIN_PERL_VERSION.

Recommendation: include "use VERSION;".

"Is there any data anywhere on how many people are actually using really old versions of Perl?"

It's possible that there's usage information somewhere, maybe from some sort of survey, but I'm unaware of such; perhaps another monk knows.

My guesses would be (mostly based on SoPW posts that I remember):

"Does CPAN collect it from install requests?"

That seems unlikely. After downloading a module tarball (which may not even involve Perl) there's no further interaction with CPAN directly.

— Ken


In reply to Re^3: Deciding dependency versions by kcott
in thread Deciding dependency versions by Bod

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.