in reply to Detecting duplicate keywords passed in a form
@keywords{map lc,@keywords}=(); @keywords = keys %keywords;
This maps all keywords to lowercase, puts them as keys to a hash (I believe this to be the fastest and most compact way), then extracts them again.
Note that you would lose the order of the keywords.
-- dakkar - Mobilis in mobile
In Section
Seekers of Perl Wisdom