Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: Recap: The Future of Perl 5

by tobyink (Canon)
on Aug 24, 2018 at 18:50 UTC ( [id://1221060]=note: print w/replies, xml ) Need Help??


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

use v5.16 and above does enable strict (though not warnings).

Replies are listed 'Best First'.
Re^5: Recap: The Future of Perl 5
by Arunbear (Prior) on Aug 25, 2018 at 11:16 UTC
    5.12 in fact already does that.
      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.

      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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1221060]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-12-03 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found