for my $ip (@ips) { my $output = `nslookup $ip`; }