in reply to Determining minimum Perl version for new module

You're the only person who has made decisions on what features of Perl you require. That directly relates to what version of Perl your software needs.

If you go non-core in your prerequisites, then that software will take care of the requisite perl you need (generally).

Leave the requirement blank, unless you need a specific version. If you do require something specific, ensure you put it both in the file you're needing it, as well as in your Makefile.PL or equivalent.

Personally, I would say no statement at all, but if anything, 5.10 "for a reasonable start", only for the defined-or operator.

Replies are listed 'Best First'.
Re^2: Determining minimum Perl version for new module
by wanna_code_perl (Friar) on Sep 12, 2019 at 01:07 UTC
    You're the only person who has made decisions on what features of Perl you require.

    Agree! But sometimes a little outside discussion can help refine those decisions, so thank you for entertaining said discussion. :-)

      If that's the case, I say require 5.10. For me personally, it'd cover my 5.8 standard, and any requirement above that.

      The CPAN Testers will ensure things work correctly against your required version of Perl, as should your local testing. If not, might I suggest the following:

      • test against numerous versions of perl via perlbrew or berrybrew
      • ensure that your software works against any custom libraries you have locally
      • verify that any local security validation is either workable or bypassed in testing
      • document and criticize any client data that you've tested against, sanitize after digesting it, and request client feedback on its handling

      Beyond that, just have numerous test platforms to run against that you can reset on every test run. There's no way to validate everything every time, so use your best judgement. If your platform is useful and there's an issue found, make sure you have very accessible contact information.