#!/usr/bin/perl -w use strict; use Net::Whois::ARIN; use Data::Dumper; my $who = Net::Whois::ARIN->new( host => 'whois.arin.net', port => 43, timeout => 30, ); if (!defined($ARGV[0])){ print "Usage: $0 [arin query]\n"; exit; } my @out = $who->query($ARGV[0]); foreach(@out){ print "$_\n"; }