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


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