Character codes: Difference between revisions

Content added Content deleted
(→‎{{header|Perl 6}}: further exposition)
m (→‎{{header|Perl 6}}: Add wikipedia link)
Line 1,541: Line 1,541:


=={{header|Perl 6}}==
=={{header|Perl 6}}==
Both Perl 5 and Perl 6 have good Unicode support, though Perl 6 attempts to make working with Unicode effortless. Note that even multi-byte emoji and characters outside the BMP are considered single characters. Also note: all of these routines are built into the base compiler. No need to load external libraries.
Both Perl 5 and Perl 6 have good Unicode support, though Perl 6 attempts to make working with Unicode effortless. Note that even multi-byte emoji and characters outside the BMP are considered single characters. Also note: all of these routines are built into the base compiler. No need to load external libraries. See [[wp:Unicode_character_property#General_Category|Wikipedia: Unicode character properties]] for explanation of Unicode property.
<lang perl6>for 'AΑА𪚥🇺🇸👨‍👩‍👧‍👦'.comb {
<lang perl6>for 'AΑА𪚥🇺🇸👨‍👩‍👧‍👦'.comb {
.put for
.put for