Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

RE: RE: RE: Re: Search Algorithm

by chromatic (Archbishop)
on Aug 10, 2000 at 20:53 UTC ( #27330=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://27330]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-02-25 02:51 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (364 votes). Check out past polls.