Its name suggests that @uniq should be filled like this:
my @uniq = sort { $a <=> $b } grep { $seen{$_} == 1 } keys %seen;
In other words: get the keys that occur only once and sort them numerically.
— Arien
In reply to Re: Sorting a hash. What am I doing wrong?
by Arien
in thread Sorting a hash. What am I doing wrong?
by mndoci
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |