Some Perl operators are currently buggy. If a string consists of "à",
- Sometimes uc will uppercase it, sometimes it won't.
- Sometimes /\w/ will match, sometimes it won't.
- etc
But for "a" and for "ā",
- uc will uppercase it.
- /\w/ will match.
- etc
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;.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.