http://www.perlmonks.org?node_id=963367


in reply to Code for parsing an array of hashes

It's a little bit not as straightforward as it could be because you're using a HoH when an AoA is probably far more appropriate. This is because the sequence of elements in a HoH is pretty much arbitrary; things won't stay in the order of testcase1, testcase2 or step1, step2, step3, step4, step5. Then, you can just loop over your test cases and for each test case loop over each of its steps.