abstract:
I want the output to look something like this:
Mem_status <tab> State_1 <tab> State_2 <tab> MemSince
Active<tab><tab> Member1 <tab> Member2 <tab> 2001
I hope I was clear. Any help/suggestions on how I can compare the two different arrays here and get the required information for each array1 from array2?
Thanks
I have the following two arrays:
@array1 = ("Member1\tMember2"......"Member1\tMember2);
@array2 = (\@Member1, \@Member2, \@state_living, \@Membership_status, \@member_since);
array1 is has two elements(Member1 and Member2 separated by tab).
array2 is a multidimensional array and has reference to arrays of Member1, Member2, state_living, membership_status, and member since).
Member 1 and Member 2 are grouped together, and each one is a unique pair, but belong to different states (state_living). Number of states in states_living array could vary from 2 to n numbers.
I need to retrieve for each of the Member1 and Member2 combination present in @array1 , their state living, and membership_status and member_since from the other @array2.
I want the output to look something like this:
Mem_status <tab> State_1 <tab> State_2 <tab> MemSince
Active<tab><tab> Member1 <tab> Member2 <tab> 2001
I hope I was clear. Any help/suggestions on how I can compare the two different arrays here and get the required information for each array1 from array2?
Thanks
|