perl -e 'print sort keys %{{map{$_=>1} <>}}' unsorted_redundant_file.t +xt
See: Perl Idioms Explained - keys %{{map{$_=>1}@list}} in our Tutorials.
In reply to Re: a way to do 'sort|uniq'
by rnahi
in thread a way to do 'sort|uniq'
by jch341277
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |