Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^3: Recap: The Future of Perl 5

by doom (Deacon)
on Aug 24, 2018 at 18:41 UTC ( #1221059=note: print w/replies, xml ) Need Help??

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


Again, if you have to remember to do a particular thing to get benefits, it hurts the Perl community. For example, use strict; use warnings; should have been the default a long time ago, with additional action taken to disable them.
So, Joe SysAdmin does an upgrade one day, and finds half of the old perl scripts on the system are broken. This is not something you want to have happen, not when we're still fighting the fallout from the "perl is dead" smear campaign.

I could see an argument that stuff like "use 5.10.0" should've implied strict and warnings also... or for that matter that cromatic's Modern::Perl should ship with the core library, it's a lot easier to type correctly (I had to double-check that you really need "5.10.0").

Backwards compatibility is really and truly important, and it remains important-- it's one of the things that perl has always gotten right (and the new kids keep screwing up).

Replies are listed 'Best First'.
Re^4: Recap: The Future of Perl 5
by tobyink (Canon) on Aug 24, 2018 at 18:50 UTC

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

      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.

        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?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2023-10-04 08:00 GMT
Find Nodes?
    Voting Booth?

    No recent polls found