in reply to hash generation

Erm, $hoh{$component}->{$cmd}->{$testcase} contains an arrayref which contains one or more arrayrefs which you've pushed into it. There's no other hashes in what you've shown. Perhaps you could clarify what hash it is you're interested in . . .