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

oxydeepu has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I want to format the output from the dumper module, which is in this format given below

$VAR1 = {
'3' => {
'GID' => 18,
'AIG' => 161,
'TEA' => 224,
},
'2' => {
'GID' => 27,
'AIG' => 160,
'TEA' => 224,
},
'4' => {
'GID' => 17,
'AIG' => 135,
'TEA' => 214,
},
'1' => {
'GID' => 18,
'AIG' => 154,
'TEA' => 235,
}
};

In the file 1,2,3,4 are column numbers and values for corresponding 3 letter words. I want to format the file and get an out put as given below

AIG 154 160 161 135
GID 18 27 18 17
TEA 235 224 224 214

I am not able to get a logic to do so.
Please help. Thanks in advance.
Deepak