http://www.perlmonks.org?node_id=1015024


in reply to Minimum Perl Version standard for CPAN?

The 'switch' feature
This feature is available starting with Perl 5.10.

Replies are listed 'Best First'.
Re^2: Minimum Perl Version standard for CPAN?
by tobyink (Canon) on Jan 23, 2013 at 21:25 UTC

    I don't think it's unreasonable to expect people to be using at least Perl 5.10.

    OK, so there are a bunch of legacy Perl 5.8 and even 5.6 installations out there, but these people shouldn't be expecting to be able to download brand new releases from CPAN.

    My own policy is to generally target 5.10, but if I can support 5.8 or earlier without too much extra trouble, then do so (especially on Tiny-style modules). A handful of my distributions even require Perl 5.12 or 5.14.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
      There is no standard Perl version for Perl 5, unlike Perl 6 which started with a standard. As for me, I'm comfortable with any Perl version thrown at me:-).