@{$hash{$_}} = uniq @{$hash{$_}} for keys %hash;
I think
@$_ = uniq @$_ for values %hash;
is more concise and even easier to read :)
Give a man a fish: <%-{-{-{-<
In reply to Re^2: assigning arrays as values to keys of hash
by AnomalousMonk
in thread assigning arrays as values to keys of hash
by pearllearner315
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |