Comparing 2 arrays of hashesby raghuprasad241 (Beadle)
|on Mar 08, 2016 at 21:37 UTC||Need Help??|
raghuprasad241 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to compare two data structures for differences. My brain is on fire right now trying to figure out a way to accomplish this. Please see below code and I am sure I am doing the looping wrong on the anonymous array references to hashes. I am new to programming and I am from administration background. This is what I tried so far. Any help or inputs is greatly appreciated.
Currently I am at a point where I am trying to compare and make sure all the anonymous hash keys that anonymous array in DS1 exist in DS2 as well. Once this is done I will be going one more level deeper. Please let me know if anything is unclear.
Output for the above code is as follows:
I am trying to compare the 2nd level of the data structure now. Once I got this working I will be going to the next level.
PS: please don't harass me for not using strict. I promise I am going to use strict once I figure this out.Jr. Monk