The module Net::IP::LPM implements the Longest Prefix Match algorithm to both protocols, IPv4 and IPv6. The module uses Trie algo.

WWW: http://search.cpan.org/dist/Net-IP-LPM/
