arunshankar.c has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Lets consider below as arrays stored for Keys in hash.
%HoA = ( flintstones => [ "fred", "barney" ], jetsons => [ "george", "fred", "elroy" ], simpsons => [ "fred", "marge", "bart" ], );
I need the duplicates present in the arrays. How can I get the output as below :
HoA{flintstones}{0} = fred HoA{jetsons}{1} = fred HoA{simpsons}{0} = fred
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: get duplicates in hash array
by davido (Cardinal) on Dec 17, 2011 at 21:11 UTC | |
by Anonymous Monk on Dec 18, 2011 at 00:40 UTC | |
by choroba (Cardinal) on Dec 18, 2011 at 00:45 UTC | |
by Anonymous Monk on Dec 18, 2011 at 03:11 UTC | |
by arunshankar.c (Initiate) on Dec 18, 2011 at 04:14 UTC | |
|
Re: get duplicates in hash array
by NetWallah (Canon) on Dec 17, 2011 at 23:07 UTC | |
by arunshankar.c (Initiate) on Dec 19, 2011 at 14:01 UTC | |
|
Re: get duplicates in hash array
by TJPride (Pilgrim) on Dec 17, 2011 at 21:35 UTC | |
by arunshankar.c (Initiate) on Dec 19, 2011 at 14:02 UTC |