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

Replies are listed 'Best First'.
Re^5: Can we make hash key check in 'if' condition case insensitive?
by Perl300 (Friar) on Feb 09, 2018 at 19:15 UTC

    Thank you ikegami, pryrt and poj. I learned something new again.