in reply to Array and Hash

As close as I can tell, you want to correlate the hash->key to SOME_DATA which resides in __TEXT__FILE__DATA__ using hash->value = string in __TEXT__FILE__DATA__.

That will be hard to do being that the string in __TEXT__FILE__DATA__ does not match the value you show in hash->key.

I think I might:

  1. modify all hash->values to get rid of 'Cat.Mouse.Game'
  2. read the text file into a separate hash getting rid of Pigeon as I do so.
  3. step through the values of the hash modified in step one looking for a matching key in the hash from step two
  4. upon match, output the key from hash in step one, the value from hash in step two along with its key.
If I understood the desired output, that should give it to you(though key first), and should run pretty fast too.

Hope that helps....

...the majority is always wrong, and always the last to know about it...

Insanity: Doing the same thing over and over again and expecting different results...

A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is simply an inconvenient fact