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


in reply to Case insensitive hash key existance

If you have an existing hash (thus fc is not an option), you can grep the key set against a case-insensitive regular expression:
if(grep /^\Q$str\E$/i, keys %data) { # case-insensitive exists
This solves an immediate problem, though making sure your keys were well-formed in the first place would probably be cleaner.

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.