in reply to null output on hashes

If you want to understand every line of the posted code you will need to learn Perl. The perlfaq2 pod lists several books of a tutorial nature that will help you.