Re: minimalist perl-utf8 questionby kcott (Abbot)
|on Feb 02, 2013 at 07:00 UTC||Need Help??|
I don't know what you were expecting. I'll assume you expected to see either 5 or 10 output from both scripts although maybe you expected something else - please clarify.
The utf8 pragma refers to characters in the source code - the documentation is very clear about this. So, when your e-acute characters are part of the source, what you have here is as to be expected.
For what it's worth, I'm using a Mac Pro and the same version of Perl as you:
If the e-acute characters are external to the source code, use utf8; will have no effect:
You might also like to take a look at the length function which also has some information regarding this issue.