PLS::Trie
A trie for fast searching of a word by prefix.
my $trie = PLS::Trie->new(); $trie->insert('me', 'me'); $trie->insert('met', 'met'); $trie->insert('method', 'method'); $trie->find('me') # ['me', 'met', 'method'] $trie->find('met') # ['met', 'method'] $trie->find('meth') # ['method']
To install PLS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PLS
CPAN shell
perl -MCPAN -e shell install PLS
For more information on module installation, please visit the detailed CPAN module installation guide.