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

Re: "use v5.36.0" should imply ASCII source

Thread Previous | Thread Next
Martijn Lievaart
August 7, 2021 12:01
Re: "use v5.36.0" should imply ASCII source
Message ID:
Op 07-08-2021 om 08:51 schreef Darren Duncan:
> Or even putting aside the POD, is there any real scenario where a 
> single file consisting of only Perl code is in multiple encodings at 
> once?

Probably not, but ...

> If there is a "use utf8;" anywhere in a Perl file, would it not be 
> reasonable to interpret that it is describing the entire file and not 
> just the portion of the file below that statement?

... I don't feel that is reasonable. It's not how "use" works in 
general. "Use" affects the file being parsed from that point on. If you 
want it to affect the whole file, put it as the first statement.

But I don't get what you want to achieve, what problem you want to solve 
with this solution?



Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About