Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I want to split the string into chunks using the TOPO_DOM as delimiter.$string="TOPO_DOM 1; /note=Cytoplasmic; /evidence=ECO:0000269|PubMed:2 +4744376; TOPO_DOM 25..74; /note=Extracellular; /evidence=ECO:0000269| +PubMed:24744376; TOPO_DOM 100..115; /note=Cytoplasmic; /evidence=ECO: +0000269|PubMed:24744376; TOPO_DOM 141..159; /note=Extracellular; /evi +dence=ECO:0000269|PubMed:24744376; TOPO_DOM 183..227; /note=Cytoplasm +ic; /evidence=ECO:0000269|PubMed:24744376"; @split_topodom = split(/TOPO_DOM/, $string); print $split_topodom[0];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why is this split not doing anything?
by LanX (Saint) on Feb 22, 2023 at 13:08 UTC | |
|
Re: Why is this split not doing anythine?
by Marshall (Canon) on Feb 22, 2023 at 19:03 UTC | |
by Anonymous Monk on Feb 22, 2023 at 21:52 UTC |