Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^6: Recap: The Future of Perl 5

by soonix (Abbot)
on Aug 25, 2018 at 12:13 UTC ( #1221091=note: print w/replies, xml ) Need Help??


in reply to Re^5: Recap: The Future of Perl 5
in thread Recap: The Future of Perl 5

perl5120delta says under Implicit strictures
Using the use VERSION syntax with a version number greater or equal to 5.11.0 will lexically enable strictures just like use strict would do (in addition to enabling features.)
which is why my script template starts out with
use 5.011; # implies strict + feature 'say'
and when (not if) someone asks where to find that odd (pun intended) version of perl, it's a good time to remind them that use specifies the minimum version.

Replies are listed 'Best First'.
Re^7: Recap: The Future of Perl 5
by doom (Deacon) on Aug 25, 2018 at 18:35 UTC

    I'm glad to hear that versions after 5.10.0 started doing what I would call the Right Thing-- somehow I missed the change. Myself, I'm still usually specifying version 10 in the code that I write, but then I generally create code using templates that also have "use strict" and "use warnings" lines-- you don't care much about a few redundant lines when you always start from the same template.

    And in any case, any of the modern object systems are going to turn on strict and warnings by default.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2019-05-26 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (153 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!