in reply to Re: How do I test the deep equality of two hash tables?
in thread How do I test the deep equality of two hash tables?

Since Storable isn't specifically designed for comparing data, it's dangerous unless it's asserted in the docs that it'll always work

I personally believe that since it's what that's suggested in the Q&A entry that the OP read, if that is not the case, then the entry itself should be amended.

Perhaps Storable does most of its work in C, while Test::Deep is pure perl?

OTOH and incidentally, I suppose that deep equality checking functions from test modules stop traversing the data structures they're given as soon as a difference is found...

--
If you can't understand the incipit, then please check the IPB Campaign.

Replies are listed 'Best First'.
Re^3: How do I test the deep equality of two hash tables?
by moritz (Cardinal) on Jul 04, 2008 at 08:11 UTC
    I personally believe that since it's what that's suggested in the Q&A entry that the OP read, if that is not the case, then the entry itself should be amended.

    No, I suspect I was wrong. I re-read the Storable documentation and now I'm convinced that it's actually legal to use it for comparison if $Storable::canonical is set to a true value. Maybe I should have read it first...