in reply to Re: 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
Thanks. How can i put this in my script ? is like below
make_uniq(\%hashref); dd $hashref; sub make_uniq { my ($hr) = @_; $_ = [ uniq @$_ ] for values %$hr; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Hash Multiple values for a key-Filtering unique values for a key in hash
by AnomalousMonk (Archbishop) on May 23, 2017 at 04:06 UTC |