in reply to Re: A question a Tree::Trie
in thread A question a Tree::Trie
from the documentation prefix: Will return the longest entry in the trie that is a prefix of word.
usr/bin/perl use Tree::Trie; my $trie = Tree::Trie->new( { deepsearch => 'prefix' } ); $trie->add_data ("+61" => "Term", "+611411" => Outleg_1, "+6114110" +=> "Outleg_2" , "+65" => "Term_Ref", default => unknown ); $trie->lookup("+61"); $trie->lookup("+612");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A question about Tree::Trie
by Athanasius (Archbishop) on Oct 18, 2017 at 07:22 UTC | |
by jhuijsing (Acolyte) on Oct 18, 2017 at 09:15 UTC |