the length function returns the length (in bytes)
No, it does not. It returns the number of characters found in the argument (or $_ when called without an argument). See length.
Note that length counts every character, including control characters like CR, LF, and TAB, and not just printable characters.
Alexander
In reply to Re^2: Length and Chomp ??
by afoken
in thread Length and Chomp ??
by snape
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |