Joining/Merging AoA
- From: Vishal G <v3gupta@xxxxxxxxx>
- Date: Mon, 21 Apr 2008 23:35:15 -0700 (PDT)
Hi Guys,
I have a little complicated problem...
I have two arrays
@a = ( ['id', 'name', 'age'],
['1', 'Fred', '24'],
['2', 'Frank', '42'],
);
@b = ( ['id', 'sex'],
['1', 'm' ],
['2', 'm'],
);
I want to join these two AoA, based on id, so the resulting array will
look like this
@c = ( ['id', 'name', 'age', 'sex'],
['1', 'Fred', '24', 'm' ],
['2', 'Frank', '42', 'm'],
);
Any Ideas?
Thanks in advance.
.
- Follow-Ups:
- Re: Joining/Merging AoA
- From: Darin McBride
- Re: Joining/Merging AoA
- Prev by Date: comp.lang.perl.modules charter
- Next by Date: Re: Joining/Merging AoA
- Previous by thread: comp.lang.perl.modules charter
- Next by thread: Re: Joining/Merging AoA
- Index(es):