in reply to File Reading and Hash Accessing that isn't doing what you'd expect.

This is probably unrelated to your problem, but you should use print instead of printf, since you are not specifying a FORMAT.

We could help you better if you showed us how you call your function and what your variables contain. Sprinkle more prints in your code to help yourself debug.

  • Comment on Re: File Reading and Hash Accessing that isn't doing what you'd expect.