in reply to Re: How best to compare hash values?
in thread How best to compare hash values?
Thanks guys!
The reason I went with a hash instead of an array is because I need to know the difference and the key at the same time, IE it is key 1 that has a difference of 1, or key 6 that has a difference of -2. Each key is a radio, and I need to know where to send the crew to fix the radio that fell out of alignment.
I'm not opposed to using arrays, I simply thought since I needed the value relative to the key, a hash was the way to go.
It is possible that I get a key in one hash that doesn't appear in another. If a new radio is added without me changing the "perfect" hash then the 'unique' key would appear in hash2, and if a radio loses power or connection then the 'unique' key would appear in hash1. Is there a simple escape from that problem, or should I just let it error out?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How best to compare hash values?
by kennethk (Abbot) on May 05, 2010 at 22:13 UTC | |
by jimbass (Novice) on May 05, 2010 at 22:44 UTC | |
|
Re^3: How best to compare hash values?
by choroba (Cardinal) on May 05, 2010 at 22:10 UTC |