Éric Cholet wrote:
% perl -MUnicode::Collate -e 'Unicode::Collate->new'
Unicode::Collate: Can't locate Unicode/Collate/allkeys.txt in @INC
Okay, I know, it wants a Unicode Collation Element Table, it's well
documented in the pod where to get such a table.
But:
- it wants this file to be in $foo/Unicode/Collate/allkeys.txt
where $foo is in @INC, which is very inconvenient, and even
impossible to achieve in some hosted environments.
Did you try upgrading the module with the CPAN version? The
distribution there includes the data files, so it should fix this
problem.
- It seems the default table (DUCET) isn't bundled with Perl
because of its size (1.2 Mb). Maybe "1.2Mb is too big" could be
reconsidered w.r.t today's environment. At any rate does it really
make sense that Unicode::Collate is in core but unusable as is?
Given that Encode alone is 11 MB, the size argument does not really
stand anymore :-)
--
Sébastien Aperghis-Tramoni
Close the world, txEn eht nepO.