http://qs1969.pair.com?node_id=344093


in reply to find differences between multiple hashes

Data::Diff or Struct::Diff will tell you if the structures differ. To drill down and compare arbitrary perl structures to generate a perl structure of the diffs is a task similar (but more complex) than that done by Data::Dumper Data::Denter or YAML.

AFAIK there is no module that currently does this. I would suggest that writing a minimum case to deal with your data (like it sounds your have) is the best solution short of rethinking the app logic. BTW your desired result output is logically inconsistent (as noted by kvale) and should also contain 'name' => 'test1'.

cheers

tachyon