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

Many thanks to everyone here!

I didn't realise reversing a hashtable was simply a matter of using reverse, that will hopefully solve all my problems. Additionally I didn't know that iterators needed to be reset (oops).

I know I was using it incorrectly (goes to show that trying to hack your way around causes unforeseen problems), just didnt know how to turn the hash around without having to re-edit it again since its a hard-coded map.

Thanks a lot guys, will see if this helps.

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

Replies are listed 'Best First'.
Re^3: File Reading and Hash Accessing that isn't doing what you'd expect.
by moritz (Cardinal) on Jun 01, 2010 at 14:43 UTC
    perlfaq4 might also be relevant for you. The start "just" talks about numbers, but later on section on hashes might really help you.