in reply to Re^3: Modern::Perl
in thread Modern::Perl

But that is kind of my point. See, foreach version of perl >= 5.12, we should have a modern.pm pragma that will croak unless you have some (modern) CPAN modules installed and at the same time, and it will enable the most-modern things perl+CPAN have to offer at the time.

This way,

use modern
in 5.10 would enable strict/warnings/say/given/err etc, in 5.12 it will enable _that_ and maybe signatures, mro 'c3', in 5.14 ... you get my drift.
[]s, HTH, Massa (κς,πμ,πλ)

Replies are listed 'Best First'.
Re^5: Modern::Perl
by chromatic (Archbishop) on Feb 02, 2009 at 18:41 UTC

    The consensus on p5p seems to be that it's more important for old programs to run unmodified on modern versions of Perl than for modern features of Perl to be available by default. In theory, use 5.10; would enable all of these features for 5.10 programs and use 5.12; for 5.12 programs, but the feature pragma at the heart of that behavior does not enable strict and warnings, and the version number keeps changing as what's "modern" changes.