http://qs321.pair.com?node_id=245119


in reply to Detecting duplicate keywords passed in a form

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