in reply to Comparing hashes without sorting the keys
Data::Dumper, Storable, Test::More, and Test::Differences all do things that are close to what you want, but none seems a perfect fit (and you don't say if you just want to test the keys and values for equality or if you want to descend into the values themselves if they are complex structures.)
Boris's suggestion of Data::Compare seems to be what you want (assuming you want a deep compare or just have a simple hash). It's Compare function returns backward for my taste, though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Comparing hashes without sorting the keys
by DrHyde (Prior) on Feb 19, 2004 at 12:26 UTC | |
by ysth (Canon) on Feb 19, 2004 at 14:44 UTC | |
by demerphq (Chancellor) on Feb 20, 2004 at 16:16 UTC | |
by DrHyde (Prior) on Feb 23, 2004 at 08:45 UTC |