Re: [greenstone-users] Sort order problem in french (accentuated words at the bottom of the lists)

From jens wille
DateThu, 11 Jan 2007 08:51:13 +0100
Subject Re: [greenstone-users] Sort order problem in french (accentuated words at the bottom of the lists)
In-Reply-To (45A5A99F-6010809-cs-waikato-ac-nz)
hi michael!

Michael Dewsnip [11.01.2007 04:06]:
> How would I check if the Unicode::Collate module is available?
> Use an eval with "require Unicode::Collate"?
me thinks you could do something like:

use if my $have_unicode_collate = eval { require Unicode::Collate
}, Unicode::Collate;

and then later in the code:

if ($have_unicode_collate) {
# do something with Unicode::Collate
}
else {
# gotta try something else
}

hope that fits...

cheers
jens