Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $HoA = { 'music' => [9, 53, 3, 15], 'conferences' => [7, 56, 15], }; my @ids; for my $ary ( values %$HoA ) { push(@ids,@$ary); } print "@ids"; # 9 53 3 15 7 56 15
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove duplicates from Hash of Arrays
by Kenosis (Priest) on Dec 09, 2013 at 20:42 UTC | |
by Anonymous Monk on Dec 09, 2013 at 22:00 UTC | |
|
Re: Remove duplicates from Hash of Arrays
by hdb (Monsignor) on Dec 09, 2013 at 20:45 UTC | |
|
Re: Remove duplicates from Hash of Arrays
by LanX (Saint) on Dec 09, 2013 at 20:41 UTC | |
|
Re: Remove duplicates from Hash of Arrays
by wind (Priest) on Dec 09, 2013 at 22:16 UTC | |
|
Re: Remove duplicates from Hash of Arrays
by Anonymous Monk on Dec 09, 2013 at 21:53 UTC |