in reply to use feature 'unicode_strings'
Some Perl operators are currently buggy. If a string consists of "à",
But for "a" and for "ā",
What's special about "à"? It's in the iso-8859-1 character set and outside of the ASCII character set. That's obviously not a reason for the current misbehaviour.
This can't be fixed for backwards compatibility reasons, so a pragma was added.
Unicode::Semantics::up (aka utf8::upgrade) is a hack that addresses the same issue. However, it only affects one string, the effect is fleeting, and it forces the use of a less efficient storage format.
The pragma fixes all broken operators, without the side effects. And it's fixed mostly automatically; all you need is use 5.012;.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use feature 'unicode_strings'
by Anonymous Monk on Mar 06, 2010 at 10:43 UTC | |
by ikegami (Patriarch) on Mar 06, 2010 at 21:09 UTC |