%hash1 = ("TEXT", 25); %hash2 = ("text", 25); foreach $item1 (keys(%hash1)) { $lchash1{lc $item1}=1; } foreach $item2 (keys(%hash2)) { if (exists $lchash1{lc $item2}) { print "matches\n";} } }