in reply to Help wanted .. cant get my head around array of hash

You may find How can I visualize my complex data structure? helpful.

(Sprinkle print my-dumper-of-choice; statements liberally throughout your code to see how variables get modified at each point. See also: Basic debugging checklist.)

HTH,

planetscape