Use the uniqueness property of a hash to filter duplicates.
my @keywords = keys %{{ map { lc, undef } qw(this that other foo this bar)}} ;Updated I changed $_ => undef to lc, undef to be correctly case-insensitive
In reply to Re: Detecting duplicate keywords passed in a form
by diotalevi
in thread Detecting duplicate keywords passed in a form
by hacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |