rubenstein has asked for the wisdom of the Perl Monks concerning the following question:
The warning is:use Unicode::UCD qw/charscript charblock/; my $infile = shift @ARGV; open (INPUT, "<:utf8", "$infile") or die "cant open $infile: $!"; $/ = undef; my $string = <INPUT>; my @array = split //, $string; foreach my $uChar (@array) { $uChar = ord($uChar); print "DEBUG uChar: $uChar\n"; #works fine (decimal value of each c +har is printed) $c = charblock($uChar); print "DEBUG: $c\n"; #produces warning and prints blank }
and this works fine, printing "Arabic" as it shouldmy $c = charblock(1578); print "$c\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with Unicode::UCD
by djohnston (Monk) on May 19, 2005 at 22:58 UTC | |
|
Re: problem with Unicode::UCD
by ikegami (Patriarch) on May 19, 2005 at 22:52 UTC | |
|
Re: problem with Unicode::UCD
by scmason (Monk) on May 19, 2005 at 22:39 UTC | |
by rubenstein (Novice) on May 19, 2005 at 23:51 UTC | |
by graff (Chancellor) on May 20, 2005 at 02:37 UTC | |
by holli (Abbot) on May 20, 2005 at 05:07 UTC | |
by rubenstein (Novice) on May 20, 2005 at 16:01 UTC |