my %table; open(IN, ') { chomp; my($ip, $country) = split(' ', $_, 2); $table{$ip} = $country; }