Remove the duplicate words in a list and preserve the original order of the words:
my %seen; my @keywords = grep ! $seen{lc()}++, qw(this that other foo THIS bar +);
Dan Kubb, Perl Programmer
In reply to (dkubb) Re: (1) Detecting duplicate keywords passed in a form
by dkubb
in thread Detecting duplicate keywords passed in a form
by hacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |