Yes, I know that. I meant your string with all the ampersands -- those are HTML Entities. They represent those characters, but in order to get the actual characters, you need to decode that first.
This is where HTML::Entities comes in. Feed your string through decode_entities, and then do your thing with encode_guess, if needed still. The length of the output of decode_entities($title) is the string you should find the length of.
~Thomas~
"Excuse me for butting in, but I'm interrupt-driven..."
In reply to Re^3: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |