$ perl -le' my @values = do { my %unique; grep ! $unique{ $_ }++, @ARGV; }; print "@values"; ' one two three four one five two one two three four five
In reply to Re: Finding unique elements in inputs
by jwkrahn
in thread Finding unique elements in inputs
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |