maheshkumar has asked for the wisdom of the Perl Monks concerning the following question:

Any idea and explanation on how to use Net::Patricia? I read the CPAN description but did not understand quite well...
  • Comment on Net::Patricia - Perl Module for IP lookup

Replies are listed 'Best First'.
Re: Net::Patricia - Perl Module for IP lookup
by Anonymous Monk on Aug 15, 2012 at 10:55 UTC

    Any idea and explanation on how to use Net::Patricia? I read the CPAN description but did not understand quite well...

    What didn't you understand (be specific)?

    Take a look at the example ( t/01everything.t)?

      Basically I have a list of IP adderesses and in another list i have a list which belongs to the /24 hosts. So from the first list i want to find which of them belongs to which host in the second list. So for example, in the first list i habe 84.23.45.1 so it should search in the second list and tell me that it belongs to the 84.23.45.0/24. Is this possible with Net::Patricia?

        Is this possible with Net::Patricia?

        The way I read the documentation, yes, it is possible

        A reply falls below the community's threshold of quality. You may see it by logging in.