Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^8: Seeking Perl docs about how UTF8 flag propagates

by haj (Vicar)
on May 22, 2023 at 15:45 UTC ( [id://11152364]=note: print w/replies, xml ) Need Help??


in reply to Re^7: Seeking Perl docs about how UTF8 flag propagates
in thread Seeking Perl docs about how UTF8 flag propagates

As has been said in this thread (and elsewhere): To reproduce, use 5.012; or newer, or more explicitly: use feature 'unicode_strings';

I have the habit to always specify a minimum version I run in my programs, including demos for PerlMonks. I admit that it didn't occur to me that without a version declaration (or with a declaration of 5.010 or older) Perl behaves differently.

  • Comment on Re^8: Seeking Perl docs about how UTF8 flag propagates

Replies are listed 'Best First'.
Re^9: Seeking Perl docs about how UTF8 flag propagates (update: unicode_rules )
by LanX (Saint) on May 22, 2023 at 16:13 UTC
    well you were the one who started "nitpicking"! :)

    edit

    I'm wondering why it got such a confusing name

    from the docs

    • The 'unicode_strings' feature

      use feature 'unicode_strings' tells the compiler to use Unicode rules in all string operations executed within its scope

    calling it "unicode_rules" would make more sense to me.

    Cheers Rolf
    (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-25 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found