http://qs321.pair.com?node_id=160944


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?
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}; }
I think you may be making this harder than it needs to be, either that or I'm not understanding your problem fully.

-----------------------------------
Frank Wiles <frank@wiles.org>
http://frank.wiles.org