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.";
In reply to Re: Merging 2 hashes
by sauoq
in thread Merging 2 hashes - updated again
by rspence
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |