in reply to Re: Compare array of hashes
in thread Compare array of hashes

He asked me to do it by iterating through both the structures and then comparing them.

Replies are listed 'Best First'.
Re^3: Compare array of hashes
by GotToBTru (Prior) on Aug 25, 2016 at 13:02 UTC

    Check out Not Exactly a Hash Tutorial in the Tutorials section for some ideas. Iterating through hashes is covered, among other very useful topics. If you want to program effectively in Perl, you need to know hashes.

    But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)

Re^3: Compare array of hashes
by ww (Archbishop) on Aug 25, 2016 at 12:56 UTC

    So, that would probably be a good idea. And I'll bet that your lectures or the parts of the book you're supposed to have read and learned from offers answers to your 'gimmé.'

    We're here to help you learn. Doing your homework does not help you learn. So go back to the book and your notes and try to solve your problem. We're here to help if you get stuck on some part of the code you'll bring back (you will bring code back, right?).


    Yet another gimmé request!
    Sorry, we expect SOPW to seek wisdom, not to ask us to do so for them.