MynameisAchint has asked for the wisdom of the Perl Monks concerning the following question:
I have a array consisting of words occupying each cell and in that array I also have ! at certain places occupying a cell individually . so i want that from one ! to other ! entire thing should go to a new array cell
say for instance " ! my name ! is !Achint ! I need ! help
I have an array where '!' is in zero cell 'my' is in one cell , 'name' is in second '!' in third "is " in forth '!' in fifth , so now i want from one '!' to other '!' i.e "my name" should go in one array cell , "is" into other .
so how can i do it , because split will not work
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Separating array contents
by space_monk (Chaplain) on Jun 07, 2013 at 07:50 UTC | |
by choroba (Cardinal) on Jun 07, 2013 at 08:29 UTC | |
by MynameisAchint (Novice) on Jun 07, 2013 at 08:46 UTC | |
by MynameisAchint (Novice) on Jun 07, 2013 at 08:47 UTC | |
|
Re: Separating array contents
by hdb (Monsignor) on Jun 07, 2013 at 09:18 UTC | |
by space_monk (Chaplain) on Jun 07, 2013 at 12:29 UTC | |
|
Re: Separating array contents
by tobias_hofer (Friar) on Jun 07, 2013 at 07:53 UTC | |
|
Re: Separating array contents
by jnyman (Acolyte) on Jun 07, 2013 at 08:53 UTC | |
|
Re: Separating array contents
by johngg (Canon) on Jun 07, 2013 at 17:27 UTC | |
|
Re: Separating array contents
by hbm (Hermit) on Jun 07, 2013 at 18:26 UTC |