Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^7: Seeking Perl docs about how UTF8 flag propagatesby hv (Prior) |
on May 17, 2023 at 12:13 UTC ( [id://11152248]=note: print w/replies, xml ) | Need Help?? |
I looked at a small number of variations around the second case here:
Looking at the perl source, it looks like it treats it differently (and ends up not flagging as UTF8) if the byte length and the character length of the whole source string are the same. (Which is a potential efficiency concern: finding the character length of a large UTF8-flagged string is expensive.)
In Section
Seekers of Perl Wisdom
|
|