|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Comparing hashes without sorting the keysby diotalevi (Canon) |
| on Feb 18, 2004 at 14:05 UTC ( [id://330012]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
That doesn't compare the keys. It compares the number of hash buckets vs hash buckets used values for each hash. You are comparing strings like "1/16" and "24/32" which is only of use when you are debugging hash bucket usage. You can use Storable to serialize your hashes for comparison: Storable::freeze( \%a ) eq Storable::freeze( \%b ).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||