in reply to Need a test for deep equality
Maybe I am missing something here but is there a reason
you just don't compare the hashes by hand? Using recursion
if they are hashes of hashes,etc?
Something along these lines?
I think you may be making this harder than it needs to be, either that or I'm not understanding your problem fully.my %hash1 = { 'foo' => 1, 'bar' => 1 }; my %hash2 = { 'foo' => 1, 'bar' => 1 }; foreach my $key ( keys(%hash1) ) { die "Not equal" if $hash1{$key} != $hash2{$key}; }
-----------------------------------
Frank Wiles <frank@wiles.org>
http://frank.wiles.org
|
---|
In Section
Seekers of Perl Wisdom