unique hash keys

2006-10-23 Thread Romeo Theriault
Hi, I'm playing with hashes trying to get myself more familiar with them. I have a little program below that has a hash with some keys and values in it. The program then copies some of the values/keys to another hash depending on their values. This all works fine, but in the last step of

Re: unique hash keys

2006-10-23 Thread Adriano Ferreira
On 10/23/06, Romeo Theriault [EMAIL PROTECTED] wrote: This all works fine, but in the last step of the program I am trying to get the program to tell me key's that are unique to only the first hash. No matter what I do it always prints out all of the values in the first hash, not the keys that

Re: unique hash keys

2006-10-23 Thread Romeo Theriault
On Oct 23, 2006, at 8:45 AM, Adriano Ferreira wrote: On 10/23/06, Romeo Theriault [EMAIL PROTECTED] wrote: This all works fine, but in the last step of the program I am trying to get the program to tell me key's that are unique to only the first hash. No matter what I do it always prints out

Re: unique hash keys

2006-10-23 Thread Adriano Ferreira
On 10/23/06, Romeo Theriault [EMAIL PROTECTED] wrote: Thank you Adriano, that works nicely after I added: use Memoize::AnyDBM_File; before that I was getting this error: AnyDBM_File doesn't define an EXISTS method at I had not payed much attention to the fact that your code were using

Re: Re: unique hash keys

2006-10-23 Thread Romeo Theriault
On 10/23/06, Adriano Ferreira [EMAIL PROTECTED] wrote: On 10/23/06, Romeo Theriault [EMAIL PROTECTED] wrote: Thank you Adriano, that works nicely after I added: use Memoize::AnyDBM_File; before that I was getting this error: AnyDBM_File doesn't define an EXISTS method at I had not