ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved