Hello fellow monkies.

J/k about that, srry. :p The reason why I post this is because I have a problem with a package that doesn't exist for Activeperl: Net::Whois::ARIN::Network.
I tried to download the package file manually and put it in the appropriate directory(C:\Perl\site\lib\Net\Whois\ARIN\Network.pm), but it doesn't work. I get thesame error.

This is the error that I get when I run my script.

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 li +ne 3.
And this is when I exclude "use Net::Whois::ARIN::Network;":
Can't call method "NetRange" on unblessed reference at C:\Users\Admin\ +Desktop\ar in.pl line 10.
Here's my script:
#!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;
I also made another script that works and gives me the output.
But I think it's more resource intensive for the server, because it gives more information than I need.
#!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;
Url's to packages:
Net::Whois::ARIN::Network
Net::Whois::ARIN

In reply to Activeperl: Net::Whois::ARIN::Network by marto9

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.