in reply to Need some help building a data structure.

You need to provide more information. As I understand your problem, you want to create a structure that could be made manually like this

push @{$hash{globalkey}{key2}{key3}{key4}}, 'ARRAY VALUE'; push @{$hash{globalkey}{key2}{key3}{key4}{key5}}, 'ARRAY VALUE'; #...

The first line wants the 'key4' entry to be an array, but the second line want that entry to be a hash.

Show some real data and tell us what output you expect.

Replies are listed 'Best First'.
Re^2: Need some help building a data structure.
by lostjimmy (Chaplain) on May 02, 2009 at 16:05 UTC

    That's exactly what I was thinking and why I had to make the assumptions I did. I figured, if anything the provided code would help the OP to answer those questions, or at the very least provide a starting position for said OP.

    Good catch on pushing the array values. I didn't take that part into my assumptions. So yoda54, got any more details for us?