Here's a Perl 6 solution:
my %lc1 = %hash1.keys>>.lc Z %hash1.values; for %hash2.keys -> $k { say "$k ", %lc1.exists($k) ?? 'Matched' !! 'Did not match'; }
Transforming the code to Perl 5 shouldn't be too hard.
In reply to Re: Ignore Case when comparing Hash Keys
by moritz
in thread Ignore Case when comparing Hash Keys
by avidcoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |