in reply to Comparing hashes without sorting the keys
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 ).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Comparing hashes without sorting the keys
by Discipulus (Canon) on Feb 18, 2004 at 19:09 UTC | |
by diotalevi (Canon) on Feb 18, 2004 at 19:12 UTC |