newbio has asked for the wisdom of the Perl Monks concerning the following question:
Hello Dear Monks,
Is there a nice way to handle recursive split operation in perl? For example, I want to perform a split operation recursively on the above sentence using the parenthesis and space together as the delimiter. So each recursive operation will produce the following:
First pass - each line below may be stored as an array element:
Using a
( modified yeast ( in PCNA promoter ) ) one-hybrid ( screen )
to identify potential
SRF cofactors
in cell
I tried looping using normal split but it does not seem to work.
Any clues? Thanks a lot.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: recursive split
by ikegami (Patriarch) on Sep 03, 2009 at 18:03 UTC | |
|
Re: recursive split
by SuicideJunkie (Vicar) on Sep 03, 2009 at 17:31 UTC | |
by newbio (Beadle) on Sep 03, 2009 at 17:57 UTC | |
by SuicideJunkie (Vicar) on Sep 03, 2009 at 19:07 UTC | |
|
Re: recursive split
by grizzley (Chaplain) on Sep 04, 2009 at 08:15 UTC |