Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: comparison of two hashes

by BioLion (Curate)
on Feb 02, 2010 at 09:08 UTC ( [id://820916]=note: print w/replies, xml ) Need Help??


in reply to comparison of two hashes

Hello, you are going to have to give us a bit more information if we are going to be able to help you:

  • What have you tried? Code? Data? Error messages ( Always use strict and warnings )?
  • What do your hashes look like (try printing them out with Data::Dumper) or what do yout *think/want* they/them to look like? The way you have written them out gives us no clue as to how they are structured! You can use < code >< \code > tags to preserve formatting (indentation etc... see Markup in the Monastery) if you prefer to write it out that way.
  • How do you want to compare them? Keys? Values? Both? Memory location? Structural equivalence? etc...
  • Maybe check out Data::Compare...
Hope this helps, but in future try to make sure that questions (and answers) you post follow the guidelines given in How do I post a question effectively?.

Just a something something...

Replies are listed 'Best First'.
Re^2: comparison of two hashes
by blackgoat (Acolyte) on Feb 02, 2010 at 09:44 UTC
    That's the point, i cant seem to figure out how should i structure them. i dont know too well how to use hashes of hashes. i want to write code which reports all the differences between the two libraries. the 1st hash should be iterated and check its existence in hash 2 and then vice versa.

Log In?
Username:
Password:

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

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

    No recent polls found