in reply to Compare two hash values for a match

It seems much easier to me to set up your lookup like this

$lookup{$sysoid} = $name;
instead of
$lookup{$name}{"name"}=$name; $lookup{$name}{"sysoid"}=$sysoid;
because that is how you want to use it.

Replies are listed 'Best First'.
Re^2: Compare two hash values for a match
by vlad3848 (Acolyte) on Oct 25, 2013 at 07:05 UTC
    Thank you! I actually reversed it and made my sysoid as the key value. It made it easier to compare keys later
    if (defined $name and defined $sysoid){ $lookup{$sysoid}{name} = $name; } }