in reply to Re^5: Net::Patricia - Perl Module for IP lookup
in thread Net::Patricia - Perl Module for IP lookup
This code i have written just for test because the data that i have is in different text files, but i can understand how this module works. From the above code i expect the following output IP 81.52.140.209 reached 81.52.140.0/24use Net::Patricia; my $pt = new Net::Patricia; my @ar = ("82.94.229.0/24", "81.52.140.0/24"); $pt->add_string(@ar, "@ar"); my $dude = $pt->match_string('81.52.140.209'); print "$dude\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Net::Patricia - Perl Module for IP lookup
by Corion (Patriarch) on Aug 15, 2012 at 11:59 UTC | |
|
Re^7: Net::Patricia - Perl Module for IP lookup
by GrandFather (Saint) on Aug 15, 2012 at 12:02 UTC | |
|
Re^7: Net::Patricia - Perl Module for IP lookup
by jethro (Monsignor) on Aug 15, 2012 at 12:23 UTC |