use Net::Whois::IP qw(whoisip_query); my $ip = "192.168.1.1"; #Response will be a reference to a hash containing all information #provided by the whois registrar #The array_of_responses is a reference to an array containing references #to hashes containing each level of query done. For example, #many records have to be searched several times to #get to the correct information, this array contains the responses #from each level my ($response,$array_of_responses) = whoisip_query($ip);