Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Creating an index on a string-collection

by samtregar (Abbot)
on Feb 08, 2009 at 21:35 UTC ( [id://742284]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Tree::Trie;
    
    ...
          join(',', @match),
          "\n";
    }
    
  2. or download this
    $ perl trie.pl 'oophoro*' '*otomy' '*botomy' 'sam*'
    oophoro* (0.0011s) : oophoroepilepsy,oophoropexy,oophoron,oophorocyste
    +ctomy,oophorocele,oophororrhaphy,oophoromalacia,oophoroma,oophoromani
    +a,oophorosalpingectomy,oophorostomy,oophorotomy
    *otomy (0.0209s) : sclerotomy,iridosclerotomy,viscerotomy,merotomy,ure
    +terotomy,sphincterotomy,enterotomy,laparoenterotomy,gastroenterotomy,
    +celioenterotomy,hernioenterotomy,uterotomy,abdomino-uterotomy,laparo-
    +uterotomy,hysterotomy,colpohysterotomy,laparocolpohysterotomy,abdomin
    +ohysterotomy,laparohysterotomy,gastrohysterotomy,celiohysterotomy,lap
    +arotomy,splenolaparotomy,hysterolaparotomy,blepharotomy,Caesarotomy,h
    +ydrotomy,angiohydrotomy,androtomy,chondrotomy,synchondrotomy,thyrotom
    +y,pleurotomy,neurotomy,aponeurotomy,commissurotomy,necrotomy,sacrotom
    +y,microtomy,nephrotomy,lithonephrotomy,laparonephrotomy,urethrotomy,o
    +stearthrotomy,arthrotomy,osteoarthrotomy,cerebrotomy,corotomy,aeropor
    +otomy,oophorotomy,metrotomy,elytrotomy,laparoelytrotomy,gastroelytrot
    +omy,celioelytrotomy,ventrotomy,antrotomy,sequestrotomy,gastrotomy,lap
    +arogastrotomy,gastrogastrotomy,celiogastrotomy,colopexotomy,loxotomy,
    +tendotomy,pericardotomy,chordotomy,cleidotomy,orchidotomy,iridotomy,c
    +litoridotomy,thyroidotomy,mastoidotomy,ichthyotomy,embryotomy,myotomy
    +,tenomyotomy,fibromyotomy,ophthalmomyotomy,tenontomyotomy,leukotomy,l
    +ymphotomy,nymphotomy,synechotomy,polychotomy,bronchotomy,thoracobronc
    +hotomy,orchotomy,trichotomy,dichotomy,subdichotomy,choledochotomy,duo
    +denocholedochotomy,canthotomy,lithotomy,cholelithotomy,pyelolithotomy
    +,ureterolithotomy,nephrolithotomy,choledocholithotomy,pelviolithotomy
    +,ornithotomy,coccygotomy,laryngotomy,tracheolaryngotomy,pharyngotomy,
    +salpingotomy,laparosalpingotomy,celiosalpingotomy,myringotomy,syringo
    +tomy,dacryocystosyringotomy,esophagotomy,vagotomy,herniotomy,cranioto
    +my,arteriotomy,salpingo-ovariotomy,ovariotomy,parovariotomy,oariotomy
    +,pelviotomy,cardiotomy,pericardiotomy,symphysiotomy,episiotomy,celiot
    +omy,coeliotomy,ciliotomy,fasciotomy,kiotomy,orchiotomy,rachiotomy,bra
    +chiotomy,angiotomy,lymphangiotomy,biotomy,pubiotomy,herpetotomy,oment
    +otomy,tenontotomy,odontotomy,pancreatotomy,meatotomy,hepatotomy,lapar
    +ohepatotomy,keratotomy,dermatotomy,stomatotomy,prostatotomy,aortotomy
    +,cystotomy,cholecystotomy,laparocholecystotomy,epicystotomy,dacryocys
    +totomy,hypocystotomy,lithocystotomy,uterocystotomy,laparocystotomy,re
    +ctocystotomy,proctocystotomy,prostatocystotomy,mastotomy,histotomy,co
    +stotomy,periostotomy,phytotomy,septotomy,rectotomy,proctotomy,autotom
    +y,orbitotomy,ototomy,ileotomy,laparoileotomy,peritoneotomy,perineotom
    +y,peotomy,tracheotomy,cricotracheotomy,laryngotracheotomy,stereotomy,
    +thyreotomy,cricothyreotomy,edeotomy,symphyseotomy,osteotomy,hebeosteo
    +tomy,periosteotomy,splenotomy,laparosplenotomy,hymenotomy,rumenotomy,
    +adenotomy,duodenotomy,gastroduodenotomy,tenotomy,myotenotomy,myoenoto
    +my,jejunotomy,splanchnotomy,tympanotomy,neuroanotomy,vaginotomy,turbi
    +notomy,mediastinotomy,pogonotomy,pneumonotomy,cionotomy,kionotomy,val
    +votomy,proctovalvotomy,ophthalmotomy,pneumotomy,thalamotomy,mammotomy
    +,desmotomy,syndesmotomy,plasmotomy,myomotomy,laparomyomotomy,celiomyo
    +motomy,entomotomy,symphysotomy,vasotomy,tarsotomy,cirsotomy,glossotom
    +y,pyelotomy,celotomy,kelotomy,helotomy,trachelotomy,laparotrachelotom
    +y,cystotrachelotomy,cephalotomy,encephalotomy,omphalotomy,amygdalotom
    +y,staphylotomy,ankylotomy,xylotomy,spondylotomy,condylotomy,bdellotom
    +y,fallotomy,tonsillotomy,cyclotomy,aplotomy,vesiculotomy,ossiculotomy
    +,valvulotomy,uvulotomy,capsulotomy,typhlotomy,alveolotomy,colotomy,il
    +eocolotomy,laparocolotomy,gastrocolotomy,lumbocolotomy,cholecystocolo
    +tomy,cheilotomy,chilotomy,pulpotomy,colpotomy,laparocolpotomy,gastroc
    +olpotomy,celiocolpotomy,hippotomy,anthropotomy,cecotomy,caecotomy,onc
    +otomy,leucotomy,thoracotomy,scotomy,phrenicotomy,cricotomy,varicotomy
    +,clavicotomy,vesicotomy,hepaticotomy,scleroticotomy,phlebotomy,ophtha
    +lmophlebotomy,hepatophlebotomy,arteriophlebotomy,flebotomy,hebotomy,g
    +astrotubotomy,strabotomy,lobotomy,rhizotomy,zootomy
    *botomy (0.0008s) : phlebotomy,ophthalmophlebotomy,hepatophlebotomy,ar
    +teriophlebotomy,flebotomy,hebotomy,gastrotubotomy,strabotomy,lobotomy
    sam* (0.0052s) : sam,saman,samarra,samara,samaras,samarskite,samaroid,
    +samarium,samariums,samaria,samariform,samaritan,samaritans,samadh,sam
    +adhi,samaj,sam-sodden,samuel,samurai,samurais,samuin,samh,samhita,sam
    +khya,samkara,samgha,samfoo,samiel,samiels,samiresite,samiri,samian,sa
    +mizdat,samisen,samisens,samite,samites,samiti,samely,samel,sameliness
    +,same-colored,same-minded,same-seeming,same-sounding,same-sized,same-
    +featured,same,samenesses,sameness,samen,samech,samechs,samek,samekh,s
    +amekhs,sameks,samesome,samnani,samnite,samvat,sammy,sammel,sammer,sam
    +mier,samskara,samshu,samshus,samshoo,samsara,samsaras,samson,samsonia
    +n,samsonite,samlet,samlets,sample,samplery,sampler,samplers,samplemen
    +,sampleman,sampled,samples,sampling,samplings,samp,samphire,samphires
    +,sampaloc,sampan,sampans,sampaguita,samps,sampi,sambel,sambul,sambuni
    +grin,sambuca,sambucas,sambur,samburs,sambuke,sambukes,sambuk,sambhur,
    +sambhurs,sambhar,sambhars,sambhogakaya,sambal,sambaed,samba,sambar,sa
    +mbars,sambaqui,sambaquis,sambas,sambaing,sambo,sambouk,sambouse,sambo
    +s,samoyed,samory,samohu,samoa,samoan,samoans,samogon,samogonka,samova
    +r,samovars,samosa,samosas,samosatenian,samothere,samothracian
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found