Hash tables where keys names would not be stored
by Thomas Drugeon other posts by this author
Nov 6 2002 10:10AM messages near this date
view in the new Beta List Site
Re: Mime::Lite question.
|
Re: Mime::Lite question.
Hello,
I am using hash table to know if a URL has already been seen, but I don't
care about functions like "each" or "keys": I just want to know if a given
URL is already in it, that's all. I don't want to store all those urls in
full text!
So I am using md5 digest to compress the URL, like "return 0 if
$seen{md5($url)};"
This results in a smaller Hash in memory, but using a hash algorithm on a
hash is quite irritating...
Do you know any other way, or Tie class, to do this in a smarter and more
efficient way?
Thanks in advance,
Thomas
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Christopher Hahn
Sisyphus
Thomas Drugeon
$Bill Luebkert
|