Re: Best way to check if element exists

2005-03-11 Thread Ramprasad A Padmanabhan
> print "exists" if $hash{key}; Obviously. But If I am just checking key exists , Is it worth having a DB_File Hash Thanks Ram -- Netcore Solutions Pvt. Ltd. Website: http://www.netcore.co.in Spamtraps: http://cleanmail.netcore.co.in/dir

Re: Best way to check if element exists

2005-03-10 Thread mgoland
- Original Message - From: Ramprasad A Padmanabhan <[EMAIL PROTECTED]> Date: Friday, March 11, 2005 2:09 am Subject: Best way to check if element exists > Hi All, Hello, > Maybe this is OT , I am sorry for that. > > I have a specific email application , where I

Best way to check if element exists

2005-03-10 Thread Ramprasad A Padmanabhan
Hi All, Maybe this is OT , I am sorry for that. I have a specific email application , where I want to check if a particular id exists or not in a file. Since this happens at real time I want the application to be as fast as possible. I am currently using DB_File hash, but that seem