Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: Recap: The Future of Perl 5

by Arunbear (Prior)
on Aug 25, 2018 at 11:16 UTC ( #1221085=note: print w/replies, xml ) Need Help??


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

5.12 in fact already does that.

Replies are listed 'Best First'.
Re^6: Recap: The Future of Perl 5
by soonix (Canon) on Aug 25, 2018 at 12:13 UTC
    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.

      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.

Re^6: Recap: The Future of Perl 5
by tobyink (Canon) on Aug 25, 2018 at 11:58 UTC

    Oh cool. I think I was getting confused because that feature was tweaked slightly in 5.16 to respect no strict even if it comes first.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2020-09-24 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I don’t succeed, I …










    Results (134 votes). Check out past polls.

    Notices?