go ahead... be a heretic | |
PerlMonks |
Re: Case insensitive hash key existanceby kennethk (Abbot) |
on Nov 22, 2017 at 16:00 UTC ( [id://1204035]=note: print w/replies, xml ) | Need Help?? |
If you have an existing hash (thus fc is not an option), you can grep the key set against a case-insensitive regular expression:
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.
In Section
Seekers of Perl Wisdom
|
|