One way is to standardize on one case for all your keys on insertion, then to force case on retrieval, like this:
-Tats%h = ( lc('adobe') => 'abcd', lc('big boss') => 'gcd', ); my $key = 'AdOBe'; $key = lc($key); print $key;
In reply to Re: Hash Keys case independent
by Itatsumaki
in thread Hash Keys case independent
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |