in reply to Merging 2 hashes - updated again
Are you just trying to do this?
$mactobp{ $_ } = $bptoifIndex{ $mactobp{ $_ } } for keys %mactobp;
Or, maybe a bit more robustly:
for my $key (keys %mactobp) { if (exists $bptoifIndex{ $mactobp{ $key } }) { $mactobp{ $key } = $bptoifIndex{ $mactobp{ $key } }; } }
-sauoq "My two cents aren't worth a dime.";
|
|---|