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:

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