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


in reply to Recursively search nested hash/array structures

Maybe Data::Rmap is what you want. see treemap.