http://www.perlmonks.org?node_id=1208845


in reply to Re^3: Can we make hash key check in 'if' condition case insensitive?
in thread [SOLVED: Can we make hash key check in 'if' condition case insensitive?

Change the map line to my %hash = map { fc $_, 1 } @castaways;, so that the hash keys are already folded, and I get:
John is a castaway JANE is a castaway luke is a castaway