I remember hearing about "Perl 6" starting many years ago--virtually at the start of my learning of Perl. The logo for "Raku", the "Camelia Bug," has "P6" etched into it rather obviously. It's quite doubtful that said logo will change just to suit the fancy of those who might wish to dissociate Raku entirely from Perl. The fact is, Raku was, and is essentially, the next major version of Perl--but was renamed for a couple reasons, including the fact some portions of it were no longer backwards-compatible with earlier versions of Perl.

From everything I've been learning about Raku, it's a wonder it isn't adopted more readily. It will fix multiple problems for me with my coding, unicode being just one of them. I also very much like the named function parameters that it allows, as for me this will also be a major improvement, not needing to put everything into a hash of variables to be passed, only a portion of which are actually required for a particular subroutine (versus creating a unique hash just for each subroutine--an even worse option). Up to now, I've been forced to maintain a strict ordering of parameters, and many of my subroutines have so many parameters as to make such code a nightmare to maintain or amend. It would be no better at all with the present Perl 5 way of handling so-called "named" parameters--which is basically just to pass them in in hash form. For my code, quite a few subroutines would have parameter lists longer than the rest of their internals, which makes the code excessively bloated to be readable--if one still considers it readable.

But Perl 5 is simply not the best tool for those working with unicode characters on a daily basis. Even the Perl manual which I have in hardcopy form says this:

In the case of Unicode, we must suffer the migration from byte semantics to character semantics. Since, through an accident of history, Perl was invented by an American, Perl has historically confused the notions of bytes and characters. In migrating to Unicode, Perl must somehow unconfuse them. (Programming Perl, p. 402)
Unfortunately, in all flavors of Perl 5, this confusion is still very much an issue for the programmer, who must be meticulous about keeping track of proper encodings for all I/O.

Blessings,

~Polyglot~


In reply to Re^6: Converting Unicode by Polyglot
in thread Converting Unicode by BernieC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.