Re: Changing the structure of a hash

2015-06-17 Thread Anirban Adhikary
Hi All I made a simple solution would like to share with all. also forget to share that every array would have 16 entries, considering my previous hash name is %MAIO_CH_GROUP my @total_array; foreach my $key (sort keys %MAIO_CH_GROUP) { print "KEY=[$key]--VALUE=[@{$MAIO_CH_GROUP{$key}

Re: Changing the structure of a hash

2015-06-17 Thread Jim Gibson
It seems that you are working with a two-dimensional array of numbers, so it is not clear why you are using a hash to store this data instead of an array of arrays. What you seem to be asking for is to generate the transpose of the two-dimensional array. So the simplest approach would be to con