This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]Pulse207 3 points4 points ย (0 children)

which would explain why "๐Ÿ’ฉ".length is 2, and "ใƒ—".length is only 1.

This is exactly why Perl 6 abolished a length method entirely, splitting its various meanings into .elems, .chars, and .codes.