Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Need a test for deep equality

by andreychek (Parson)
on Apr 20, 2002 at 15:43 UTC ( #160790=note: print w/ replies, xml ) Need Help??


in reply to Need a test for deep equality

There is a module for this over at CPAN called Struct::Compare. From the description:

Compares two values of any type and structure and returns true if they are the same. It does a deep comparison of the structures, so a hash of a hash of a whatever will be compared correctly.

So, you just pass in two structures, and it returns true or false, based on whether or not the structures are equal.

Hope that helps!
-Eric


Comment on Re: Need a test for deep equality

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://160790]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (17)
As of 2014-10-30 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls