http://www.perlmonks.org?node_id=459641


in reply to Re^8: Recursively traverse two data structures and test for match (testing / overload)
in thread Recursively traverse two data structures and test for match

Blessing into a non-overloaded package is the official way to get around such difficulties. 'Does::Not::Exist' is a popular one.

My problem was that with a deeply nested data structure, I'd have to walk the entire thing first, find all the objects blessed into the overloaded class, and rebless them prior to asking Test::More to compare the structures. I have the opinion that its all that structure walking that prompted me to use is_deeply() in the first place but to have it fail to work because I couldn't convince it to ignore overloading was a disappointment.

  • Comment on Re^9: Recursively traverse two data structures and test for match (testing / overload)