in reply to Re^2: How does the built-in function length work?
in thread How does the built-in function length work?

It also works on encoded strings, that is to say then it counts octets.

Be aware of what you are feeding to the length function, you must keep track of the state of encoding yourself because Perl won't.

  • Comment on Re^3: How does the built-in function length work?