Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Comparing two hashes

by ruzam (Curate)
on Apr 02, 2010 at 02:06 UTC ( [id://832419]=note: print w/replies, xml ) Need Help??


in reply to Re: Comparing two hashes
in thread Comparing two hashes

Actually, this only tells you which 'values' exist in both hashes, not whether the key/value pairs are the same, let alone whether the two hashes are the same.

How to check similarity of two hash tables
How do I test the deep equality of two hash tables?
How to test equality of hashes?

Replies are listed 'Best First'.
Re^3: Comparing two hashes
by dwm042 (Priest) on Apr 02, 2010 at 18:06 UTC
    Actually, that's what I intended to do, ruzam. And that's what I said I was going to do. One example, of one possible interpretation of the OP's question, was all I wanted to provide.
      My bad, sorry. You're absolutely right and I should have read your response more carefully. I'm afraid I got caught up in the code example without paying attention to the lead in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-18 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found