in reply to Counting chars in a HTML-page

Remember that length() will give you the total number of bytes including control characters, while M$ Office will only give you the number of glyphs (visible, symbolic characters).

Replies are listed 'Best First'.
Re^2: Counting chars in a HTML-page
by Anonymous Monk on Aug 02, 2008 at 15:42 UTC
    perldoc -f length
    Note the *characters*: if the EXPR is in Unicode, you will get the number of characters, not the number of bytes. To get the length in bytes, use "do { use bytes; length(EXPR) }", see bytes.