Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: Modern::Perl

by massa (Hermit)
on Feb 02, 2009 at 11:34 UTC ( [id://740665]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://740665]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-20 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found