Re: Searching a sorted array of strings




one man army wrote:
I wanted to do something, here is the working code to do
that. Maybe someone will search and find it.

first, it's a FAQ because it's Frequently Asked. So I imagine many
people will search for this topic. With any luck, anyone finding your
crummy so-called answer will also see Paul's response.


Since I am getting the hang of Perl today,

Beginner land, remember? :-)

non-*** beginners find that if they listen to the people who
actually know what they're talking about they learn much faster.


And actually, I am a really great coder. Just not in Perl. :-)

How many more of these "great coders" can we take this week? GOD.


So you say really preprocess the array to make it a Hash, like

%CA_Cities = ( 'San Francisco' => 1, 'Los Angeles' => 2 );


why would you make Los Angeles correspond to a 2? what's the matter
with you?

*sigh*
-jp

.