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

From John R. McPherson
DateThu, 11 Jan 2007 21:54:25 +1300
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)
On Thu, Jan 11, 2007 at 04:06:07PM +1300, Michael Dewsnip wrote:
> Hi John,
>
> No, this sounds like a good idea. I thought it should get some testing
> first before inflicting it on everybody though :-)
>
> How would I check if the Unicode::Collate module is available? Use an
> eval with "require Unicode::Collate"?

Something like that, but I think it is more complicated. You can check
the return value of the eval (it will be non-null and non-zero if the
require succeeds), but you might also need to do this inside a BEGIN
block (although I'm not sure about this - look in the perlfunc manpage
under "use" or search for "use VERSION").

John