Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Unicode puzzle

by Krambambuli (Curate)
on Apr 09, 2009 at 08:29 UTC ( #756534=note: print w/replies, xml ) Need Help??


in reply to Unicode puzzle

Answering myself, after benefitting of Ikegami's suggestion about where to look.

As almost always, CPAN has a solution and this time it is Unicode::UCD. So I can write

$ perl -e 'use Unicode::UCD qw(charinfo); use Data::Dumper; print Dump +er( charinfo( ord("é"))), "\n";' $VAR1 = { 'digit' => '', 'bidi' => 'L', 'category' => 'Lu', 'code' => '00C3', 'script' => 'Latin', 'combining' => '0', 'upper' => '', 'name' => 'LATIN CAPITAL LETTER A WITH TILDE', 'unicode10' => 'LATIN CAPITAL LETTER A TILDE', 'decomposition' => '0041 0303', 'comment' => '', 'mirrored' => 'N', 'lower' => '00E3', 'numeric' => '', 'decimal' => '', 'title' => '', 'block' => 'Latin-1 Supplement' };
et voilá.. :) Thank You, that's all I was looking for.


Krambambuli
---

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://756534]
help
Chatterbox?
[1nickt]: choroba Understood. I'm wondering about the logic in a cpanfile. If the perl doesn't support threads, it's easy: require MCE. If the perl does support threads, as you say the user has a choice, so require both? Or, assume that irrespective of the choide
[1nickt]: ... choice, the threaded-perl user *probably* wants to use threads, therefore only require threads and leave MCE out, allowing the user to manually install if desired?
[choroba]: just require any of MCE and threads. Not sure if that's possible in the cpanfile, but should be possible early in the Makefile
[1nickt]: The app expects threads as default anyway, right?
[choroba]: that's true
[1nickt]: expects threads *to be* the default
[1nickt]: I think cpanfile can handle the logic. testing now.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2017-10-18 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (244 votes). Check out past polls.

    Notices?