in reply to Re^2: Hash Multiple values for a key-Filtering unique values for a key in hash
in thread Hash Multiple values for a key-Filtering unique values for a key in hash
How can i put this in my script ?
If your data is held in the form of a hash (not a hash reference), e.g.
the following works (tested):my %hash = ( 'Alabama' => [ qw(Andalusia Anniston Clanton Eufaula Auburn Bessemer Eufaula Auburn Bessemer) ], 'California' => [ qw(Barstow Barstow) ], 'Georgia' => [ qw(Darien) ], 'New York' => [ 'Coney Island', qw(Amsterdam Beacon Becon), 'Coney Island', ], );
make_uniq(\%hash); dd \%hash;
Give a man a fish: <%-{-{-{-<
|
|---|