That looks like HTML character codes. Your method just counts how many characters are in that string, which seems to be 268.
The fix is simple. Install HTML::Entities, and follow the examples given(like the one in the synopsis), and go from there.
HTH
~Thomas~
"Excuse me for butting in, but I'm interrupt-driven..."
In reply to Re: how to calculate the length for other language content in PERL?
by thomas895
in thread how to calculate the length for other language content in PERL?
by vasanthgk91
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |