sloppyhack
Technical User
I built a hash of arrays of hashes. I can access everything, but I need to do something with each hash within the array of hashes and am having trouble defining how many hashes exist in the array so I can use a 'for' loop to get each one.
The structure looks like.....
$hash{$hashname}[$row]->{'VALUE'} = 'SOMETHING';
I'm trying to get the total elements in the array with the following but it's not working.
$totalinarray = scalar $hash{$hashname};
Anyone know how to get to the total number of hashes in the array? Or..a good way to cycle through the hashes?
Cheers,
Sloppyhack
The structure looks like.....
$hash{$hashname}[$row]->{'VALUE'} = 'SOMETHING';
I'm trying to get the total elements in the array with the following but it's not working.
$totalinarray = scalar $hash{$hashname};
Anyone know how to get to the total number of hashes in the array? Or..a good way to cycle through the hashes?
Cheers,
Sloppyhack