Perhaps I fail to understand exactly what you are doing, but doesn't this accomplish your goal?
sub beautify { my %seen; return sort {$a<=>$b} grep {!$seen{$_}++} @_; }
In reply to Re: quandery about a grep statement
by danger
in thread quandery about a grep statement
by jynx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |