Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Find common prefix from a list of strings

by demerphq (Chancellor)
on Jul 14, 2003 at 20:44 UTC ( #274157=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub insert {
      my $trie=shift;
    ...
    my %trie;
    insert(\%trie,$_) foreach qw(model4run1 model2run1 model4run2 model1ru
    +n1);
    print common(\%trie);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://274157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2020-01-20 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?