all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
5
Task/String-length/Perl/string-length-3.pl
Normal file
5
Task/String-length/Perl/string-length-3.pl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
use v5.12;
|
||||
my $string = "\x{1112}\x{1161}\x{11ab}\x{1100}\x{1173}\x{11af}"; # 한글
|
||||
my $len;
|
||||
$len++ while ($string =~ /\X/g);
|
||||
printf "Grapheme length: %d\n", $len;
|
||||
Loading…
Add table
Add a link
Reference in a new issue