sub flatten {return "@_"}; if ( flatten(%hash1) eq flatten(%hash2) ) { print "equal\n" } else { print "not\n" }