| 1 | use strict; | ||
| 2 | use diagnostics; | ||
| 3 | |||
| 4 | use Unicode::String qw / utf8 /; | ||
| 5 | use IETF::ACE qw / &UCS4toRACE /; | ||
| 6 | |||
| 7 | my $TheIn="ábcde"; # .com | ||
| 8 | |||
| 9 | my $TheUCS4 = utf8($TheIn)->ucs4; | ||
| 10 | |||
| 11 | my $TheOut = &UCS4toRACE($TheUCS4); | ||
| 12 | |||
| 13 | print <<EOD; | ||
| 14 | Latin1 Input = $TheIn.com | ||
| 15 | RACE Output = $TheOut.com | ||
| 16 | EOD | ||
| 17 |