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";
In reply to Re^6: Net::Patricia - Perl Module for IP lookup
by maheshkumar
in thread Net::Patricia - Perl Module for IP lookup
by maheshkumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |