Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi experts,
I have an array of hash like below.
Input:
Thanks in advance
Input:
$VAR1=[
{
case=>'case1',
id =>'001',
name => 'raja',
degree => 'bcom'
},
{
case=>'case1',
id =>'002',
name => 'raja1',
degree => 'bcom'
},
{
case=>'case2',
id =>'003',
name => 'bala',
degree => 'bcom'
},
{
case=>'case2',
id =>'004',
name => 'gopi',
degree => 'bcom'
}
]
i want the output should be like below. The same order need to be maintain. will any one help me to solve this ?
Need output like below:
Case1:
001) raja, bcom,
002) raja1, bcom
Case2:
003) Bala,bcom
004) gopo, bcom
Thanks in advance
Back to
Seekers of Perl Wisdom