in reply to Uninitialized errors when using 2 hashes.

To expand on the answer above, the correct way to test for definedness, or the lack thereof, is with defined, something like

if (!defined $var) {...
, not with
if ($var eq undef) {...
See also exists