Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
Can I get the value from an hash with case insensitive key.
Example:
%h=('adobe'=>'abcd','big boss'='gcd');
I want the value abcd when i print $h{'AdOBe'}.
How can i get this.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash Keys case independent
by Joost (Canon) on May 04, 2004 at 15:13 UTC | |
|
Re: Hash Keys case independent
by edan (Curate) on May 04, 2004 at 15:13 UTC | |
|
Re: Hash Keys case independent
by Limbic~Region (Chancellor) on May 04, 2004 at 15:16 UTC | |
|
Re: Hash Keys case independent
by davido (Cardinal) on May 04, 2004 at 15:21 UTC | |
by Not_a_Number (Prior) on May 04, 2004 at 19:31 UTC | |
|
Re: Hash Keys case independent
by Itatsumaki (Friar) on May 04, 2004 at 15:16 UTC | |
|
Re: Hash Keys case independent
by EdwardG (Vicar) on May 04, 2004 at 15:14 UTC |