develooper Front page | perl.perl5.porters | Postings from June 2020

Re: Announcing Perl 7

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
June 26, 2020 16:03
Subject:
Re: Announcing Perl 7
Message ID:
20200626160313.GJ3267@iabyn.com
On Fri, Jun 26, 2020 at 05:50:39PM +0200, demerphq wrote:
> Ok, so just to be clear, my understanding that "use strict" and "no
> strict" will be equivalent to "use perl-5-semantics; use strict;" and
> "use perl-5-semantics; no strict;".

I can't understand your obsession with just 'strict'.

My understanding is that out-of-the-box, a perl7 binary will enable by
default,  *a whole bunch of extra stuff*, not just 'strict'.

So for example,  running a plain perl script using a perl7 interpreter is
as if the following lines had been injected at the top of the script:

    use warnings;
    use strict;
    use feature 'signatures';
    no feature 'indirect';
    ... etc ...

is that the same as your understanding?

-- 
Fire extinguisher (n) a device for holding open fire doors.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About