in reply to Re: Join 2 arrays horizontally
in thread Join 2 arrays horizontally

And depending on how the original data is sourced you may be better off simply creating the hash in the first place.

my %ip2host = ( ip1 => host1, ip2 => host2, ip3 => host3 );