Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: comparing two hashes

by rinceWind (Monsignor)
on Feb 24, 2002 at 22:14 UTC ( [id://147220]=note: print w/replies, xml ) Need Help??


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

chipmunk is right that hashes are the right tool to use here. However, there are some instances when hashes are not usable:

  • When you need to preserve the order of the data
  • If you have duplicate keys.

I have had quite a lot of success with Algorithm::Diff. See also Re: Comparing Elements of Two Arrays.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-29 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found