Perl Programming/Keywords/length

The keyword
is a function that returns how long the following expression is in terms of characters. If no  is given, it returns the length of. If the expression is undefined,  is returned.

As length returns the number of logical characters, to find out the number of bytes in UTF-8, one has to enter an expression (see below).

Examples
Perl… 7 10