develooper Front page | perl.perl5.porters | Postings from July 2009

Is unicore/lib/gc_sc/ documented anywhere?

Thread Next
Chas. Owens
July 25, 2009 11:37
Is unicore/lib/gc_sc/ documented anywhere?
Message ID:
Is it safe to say

use Unicode::Digits qw/digits_to_int/;

my @digits;
for (split "\n", require "unicore/lib/gc_sc/") {
        my ($s, $e) = map hex, split;
        for (my $ord = $s; $ord <= $e; $ord++) {
                my $chr = chr $ord;
                push @{$digits[digits_to_int $chr]}, $chr;

for my $i (0 .. 9) {
        my $re = join '', "[", @{$digits[$i]}, "]";
        $digits[$i] = qr/$re/;

Or is unicore/lib/gc_sc/ an undocumented feature likely to change?

Chas. Owens
The most important skill a programmer can have is the ability to read.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About