develooper Front page | perl.perl5.porters | Postings from August 2021

Re: "use v5.36.0" should imply UTF-8 encoded source

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
August 2, 2021 14:23
Subject:
Re: "use v5.36.0" should imply UTF-8 encoded source
Message ID:
20210802152321.33da204c@shy.leonerd.org.uk
On Mon, 2 Aug 2021 06:54:43 -0400
Felipe Gasper <felipe@felipegasper.com> wrote:

> 1. -E loads the feature bundle. So if the 5.36 feature bundle is to
> include utf8.pm, so will -E, right?

We didn't say the :5.36 feature bundle would `use utf8`.

We suggested having `use v5.36` do so.

Compare to the way that `use v5.12` onwards will `use strict`, but even
perl5.34 -E does not:

$ perl -e 'use v5.12; $x = 123'
Global symbol "$x" requires explicit package name (did you forget to
declare "my $x"?) at -e line 1.
Execution of -e aborted due to compilation errors.

$ perl5.34.0 -E '$x = 123; say $x'
123


-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

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