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

WWW: https://metacpan.org/pod/Net::IP::LPM
