Re: generating unique integers [resolved, with magic]

From: stuart yeates <stuart.yeates_at_nyob>
Date: Mon, 31 May 2010 11:01:07 +1200
To: CODE4LIB_at_LISTSERV.ND.EDU
Eric Lease Morgan wrote:

>   my $integer = unpack( "%32C*", "$author$title" ) % 65535;

If you want these to be repeatable, you should preceded that by:

(a) unicode normalisation
(b) whitespace normalisation
(c) case folding

Probably in that order.

cheers
stuart
-- 
Stuart Yeates
http://www.nzetc.org/       New Zealand Electronic Text Centre
http://researcharchive.vuw.ac.nz/     Institutional Repository
Received on Sun May 30 2010 - 19:16:39 EDT