in reply to hash table prob..
use strict; use warnings; [download]
below the shebang line in all your scripts, it will help you.
I find Data::Dumper invaluable when trying to decipher complex data structures.