Hello,
I'd like to do something but im not quite sure how. I think i might need to use a hash table.
Suppose I have a couple arrays
I would like to be able to search for example "apple" and get a key value of "fruit". Or search for dog and return a value of "animal".
I'd like to do something but im not quite sure how. I think i might need to use a hash table.
Suppose I have a couple arrays
Code:
@array1 = ("apple","orange","grape");
@array2 = ("dogs","cats","birds");
I would like to be able to search for example "apple" and get a key value of "fruit". Or search for dog and return a value of "animal".