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..."
| [reply] [d/l] [select] |
use HTML::Entities;
$title=decode_entities($title);
my $title_length=length($title);
$title=encode_entities($title);
It's working | [reply] [d/l] |
I told you :-)
~Thomas~
"Excuse me for butting in, but I'm interrupt-driven..."
| [reply] |