for my $ip (@ips) { push @newips, $ip->[0]; push @attempts, $ip->[1]; }