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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: convert array of hash into formatted one
by choroba (Cardinal) on Aug 05, 2015 at 17:00 UTC | |
by Anonymous Monk on Aug 06, 2015 at 03:48 UTC | |
Re: convert array of hash into formatted one
by toolic (Bishop) on Aug 05, 2015 at 16:53 UTC | |
Re: convert array of hash into formatted one
by anonymized user 468275 (Curate) on Aug 05, 2015 at 17:14 UTC | |
by derby (Abbot) on Aug 05, 2015 at 18:01 UTC | |
by anonymized user 468275 (Curate) on Aug 06, 2015 at 09:31 UTC |
Back to
Seekers of Perl Wisdom