in reply to null output on hashes

You could use delete to remove the key/value pairs from your first hash if no match is found in your second file.

There are probably more idiomatic was of doing so, but you've got to walk before you can run. ;)

Hanlon's Razor - "Never attribute to malice that which can be adequately explained by stupidity"