in reply to Net::Whois::Raw silently fails

I blame your uninformative error message:

# Lookup domain with whois $who = whois($d) or die "Cannot reach whois server"; # Get expiration date if ($who =~ m/expir.*?(\d{2}-\w{3}-\d{4})/i) { $edate = $1; }elsif ($who =~ m|renewal-date.*?(\d{4}/\d{2}/\d{2})|i) { $edate = $1; }else{ $expires{$d} = "Whois failed"; next; }

Once you replace your "Whois failed" with something more informative, it should become much clearer where the error lies:

$expires{$d} = "Whois failed for $d: Couldn't decipher '$who'" +;

Replies are listed 'Best First'.
Re^2: Net::Whois::Raw silently fails
by neilwatson (Priest) on Oct 31, 2006 at 16:00 UTC
    The error message did help. Thank you. I tried something similar but, the format for the printed report truncated the error message (my bad). Also, whois servers sometimes get upset by to many requests in a short period of time. I placed a sleep (10 seconds) in the domain loop and things are working now.

    Neil Watson
    watson-wilson.ca