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


in reply to RE: RE: Re: Search Algorithm
in thread Search Algorithm

Keys in a hash are case sensitive, but nothing says you have to store them in a particular case. Pseudo-workable snippet follows:
foreach (@words) { $word_idx{lc($_)} = $position; }
The important magic is in lc. You'll have to use lc when you pull values out of the hash, too, or use a tied hash that does this for you.