You can not do it with a simple hash.
Yes you can. However, that does not mean that you should :-)
my %h = ( 'aDobe' => 'abcd', 'big boss' => 'gcd', 'ADOBe' => 'abcd2' ) +; my $str = 'AdOBE'; for ( keys %h ) { print "$h{$_}\n" if lc $_ eq lc $str; }
In reply to Re: Re: Hash Keys case independent
by Not_a_Number
in thread Hash Keys case independent
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |