Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
1
Task/Unicode-strings/Perl/unicode-strings-1.pl
Normal file
1
Task/Unicode-strings/Perl/unicode-strings-1.pl
Normal file
|
|
@ -0,0 +1 @@
|
|||
use utf8;
|
||||
3
Task/Unicode-strings/Perl/unicode-strings-2.pl
Normal file
3
Task/Unicode-strings/Perl/unicode-strings-2.pl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$四十二 = "voilà";
|
||||
print "$四十二"; # voilà
|
||||
print uc($四十二); # VOILÀ
|
||||
4
Task/Unicode-strings/Perl/unicode-strings-3.pl
Normal file
4
Task/Unicode-strings/Perl/unicode-strings-3.pl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
use charnames qw(greek);
|
||||
$x = "\N{sigma} \U\N{sigma}";
|
||||
$y = "\x{2708}";
|
||||
print scalar reverse("$x $y"); # ✈ Σ σ
|
||||
1
Task/Unicode-strings/Perl/unicode-strings-4.pl
Normal file
1
Task/Unicode-strings/Perl/unicode-strings-4.pl
Normal file
|
|
@ -0,0 +1 @@
|
|||
print "Say עִבְרִית" =~ /(\p{BidiClass:R})/g; # עברית
|
||||
2
Task/Unicode-strings/Perl/unicode-strings-5.pl
Normal file
2
Task/Unicode-strings/Perl/unicode-strings-5.pl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
open IN, "<:utf8", "file_utf";
|
||||
open OUT, ">:raw", "file_byte";
|
||||
Loading…
Add table
Add a link
Reference in a new issue