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

Re: Pre-RFC: yield true feature

Thread Previous | Thread Next
August 3, 2022 15:59
Re: Pre-RFC: yield true feature
Message ID:
On Sat, Jun 18, 2022 at 11:13:18AM -0400, Ricardo Signes wrote:
> my $str1 = do { use utf8; "🙂" };
> my $str2 = do {           "🙂" };

If I understand correctly, `use utf8` is less about the encoding of the
file (Perl code is ascii anyway), and more about what the literal
strings in the lexical scope actually contain (either a utf8 string, or
a byte stream), right?

 Philippe Bruhat (BooK)

 The best thing about being apart is getting together again.
                                    (Moral from Groo The Wanderer #39 (Epic))

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