in reply to Detecting duplicate keywords passed in a form
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 Section
Seekers of Perl Wisdom