Names to ids

jesse jesse at fsck.com
Wed Jan 25 13:47:16 GMT 2006




On Wed, Jan 25, 2006 at 01:40:29PM +0000, Simon Wistow wrote:
> I need to turna filename into a numeric id in a repeatable manner (i.e 
> the same filename must always produce the same number).  
> 
> My first thought (md5_hex the name and then hex the reuslt to get an 
> integer) gets an overflow error unless I truncate to the first 8 
> characters.

Or use Math::BigInt.


-- 


More information about the london.pm mailing list