in reply to Why is this split not doing anythine?
This
is only printing the part before the first "TOPO_DOM" which is an empty string ""
"TOPO_DOM 1 ... ^^
You have to inspect the full array
Debugger-Demo
> perl -de0 ... DB<21> $string="TOPO_DOM 1; /note=Cytoplasmic; /evidence=ECO:0000269 +|PubMed:24744376; TOPO_DOM 25..74; /note=Extracellular;..." DB<22> x split /TOPO_DOM/, $string 0 '' 1 ' 1; /note=Cytoplasmic; /evidence=ECO:0000269|PubMed:24744376; ' 2 ' 25..74; /note=Extracellular;...' DB<23>
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
|
|---|