I was also wondering the same thing. If there's a module that does deep comparison or any comparison, it's kind of odd that it doesn't provide a way to change the nature of comparison. Then I remembered
Data::Compare and
Data::Compare::Plugins::Scalar::Properties :-)