Can't locate Net/Whois/ARIN/Network.pm in @INC (@INC contains: C:/Perl/site/lib
C:/Perl/lib .) at C:\Users\Admin\Desktop\arin.pl line 3.
BEGIN failed--compilation aborted at C:\Users\Admin\Desktop\arin.pl line 3.
####
Can't call method "NetRange" on unblessed reference at C:\Users\Admin\Desktop\ar
in.pl line 10.
####
#!usr/bin/perl
use strict;
use warnings;
use Net::Whois::ARIN;
use Net::Whois::ARIN::Network;
my $w = Net::Whois::ARIN->new(
host => 'whois.arin.net',
port => 43,
timeout => 30,
);
my @output = $w->network("NERSC");
foreach my $net (@output) {
print $net->NetRange."\n";
}
exit;
####
#!usr/bin/perl
use strict;
use warnings;
use Net::Whois::ARIN;
my $w = Net::Whois::ARIN->new(
host => 'whois.arin.net',
port => 43,
timeout => 30,
);
my @results = $w->query("NERSC");
foreach $result (@results) {
print $result."\n";
}
exit;